Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/07/02 16:52
Read: times


 
#24116 - RE: Keil -> IAR
Hi David,

Like I said, IAR has great tech support. Fifteen minutes after I asked, I got the answer. I was wrong about IAR not being able to handle placing variables/functions where you want. Not as easy as Keil however...

Dennis


Verbatim from IAR:

The #define statement should be okay just the way it is. As for the Uchar,

In the C code

#pragma memory=dataseg(API_COMMAND)
Uchar api_command;
#pragma memory=default

This will place the variable api_command in a data segment called API_COMMAND. Then, in the linker command file define the segment as follows

-Z(DATA)API_COMMAND=1C

This way, the variable api_command is placed at the address 0x1C





List of 5 messages in thread
TopicAuthorDate
Keil -> IAR            01/01/70 00:00      
RE: Keil -> IAR            01/01/70 00:00      
RE: Keil -> IAR            01/01/70 00:00      
RE: Keil -> IAR            01/01/70 00:00      
RE: Keil -> IAR            01/01/70 00:00      

Back to Subject List