Discussion in "8051 Discussion Forum" started by    scorcho    Oct 29, 2007.
Mon Oct 29 2007, 03:30 AM
#1
Hi,
I have a few functions in my 8051 firmware that have a few byte parameters in them, and I noticed that these parameters are stored in DATA space, making me run out of DATA space since I only have 128bytes to work with.

Is there any way of storing these parameters in xdata instead? I noticed that I'm only able to store byte pointers to xdata by using the "xdata" qualifier. The qualifier doesn't work on regular byte parameters.
Mon Oct 29 2007, 03:39 AM
#2
OK, I tried declaring the functions as large and now they don't use DATA but rather xdata, with a slight increase in code space. Other than this are there any other implications?

The project is built using the small memory model if that makes a difference.
Mon Oct 29 2007, 05:41 AM
#3
use linker script to link your data and code space according to your needs.. that might help you..

do you have xram on board?

Get Social

Information

Powered by e107 Forum System

Conversation

No messages yet.

Downloads

Comments

Mirza123
Thu Jun 25 2020, 03:46 PM
eunicelove124
Mon Jun 22 2020, 03:03 PM
cerouno
Tue Jun 16 2020, 05:10 PM
Marce
Sat Jun 13 2020, 09:43 PM
Davidthils
Thu May 21 2020, 12:44 PM
Jakeror
Thu May 21 2020, 01:28 AM
motorCar
Wed May 20 2020, 07:05 PM
Vordrync
Wed May 20 2020, 11:52 AM

Online

Guests: 89, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38215
Newest member: Mirza123