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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/04/06 11:57
Read: times


 
#115554 - it almost is
Responding to: ???'s previous message
Just checked. They deliver several header files for each mcu, one for every compiler (IAR, Raisonance, Tasking too) not one generic.

Those header files use a macro to declare sfr's but they did not implement the macro for SDCC correctly. It should be something like:
#if defined SDCC

#define Sfr(x, y)	__sfr   __at (y)               x
#define Sbit(x, y, z)   __sbit  __at (y+z)             x
#define Sfr16(x,y)	__sfr16 __at (((y+1)<<8) | y)  x

#endif


List of 22 messages in thread
TopicAuthorDate
SDCC and Keil C compatibility            01/01/70 00:00      
   major differences            01/01/70 00:00      
   ansi incompatabilities            01/01/70 00:00      
   SDCC vs keil            01/01/70 00:00      
      other way round :)            01/01/70 00:00      
   SDCC vs Keil Part 2            01/01/70 00:00      
      actualy            01/01/70 00:00      
         thanks            01/01/70 00:00      
            sfr declarations NOT compatible            01/01/70 00:00      
               too bad            01/01/70 00:00      
                  Perhaps it is?            01/01/70 00:00      
                     indeed            01/01/70 00:00      
                     it almost is            01/01/70 00:00      
               the root of many evils            01/01/70 00:00      
   Another important difference!            01/01/70 00:00      
   fast & efficient code            01/01/70 00:00      
   Problem with porting code            01/01/70 00:00      
      bla bla            01/01/70 00:00      
      semicolon missing            01/01/70 00:00      
      set TI=1 in your init_uart()            01/01/70 00:00      
      Have you looked at this?            01/01/70 00:00      
      General Tip: Disable all extensions            01/01/70 00:00      

Back to Subject List