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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/12/02 08:20
Read: times


 
#24308 - RE: SDCC Compiler
#define MICHAELSINTVECTOR 13 /* = (0x6b-0x03)/0x08
In Keil, there would be no point in manually doing the calculation like this to get the magic number 13; you would simply write
#define MICHAELSINTVECTOR (0x6b-0x03)/0x08
and the compiler does the calculation at compile time (and hopefully comment all those other Magic Numbers!)

Is this not the case with SDCC?

BTW: Note that your definition has an unterminated comment - never have an unterminated cpmment (including a C++ style // comment) on the end of a #define... :-0

List of 29 messages in thread
TopicAuthorDate
SDCC Compiler            01/01/70 00:00      
RE: SDCC Compiler            01/01/70 00:00      
RE: SDCC Compiler            01/01/70 00:00      
RE: SDCC Compiler            01/01/70 00:00      
RE: SDCC Compiler - mahmood            01/01/70 00:00      
RE: SDCC Compiler - mahmood, chris            01/01/70 00:00      
You're right :-)            01/01/70 00:00      
RE: SDCC Compiler - chris            01/01/70 00:00      
Mahmood!!!            01/01/70 00:00      
RE: SDCC Compiler            01/01/70 00:00      
RE: srry got your msg after i replied            01/01/70 00:00      
To: Mehmood            01/01/70 00:00      
Ijaz!!!!!            01/01/70 00:00      
RE: srry got your msg after i replied            01/01/70 00:00      
RE: To: Mehmood            01/01/70 00:00      
RE: To Alex            01/01/70 00:00      
RE: SDCC Compiler            01/01/70 00:00      
RE: SDCC Compiler            01/01/70 00:00      
RE: SDCC Compiler            01/01/70 00:00      
RE: SDCC Compiler            01/01/70 00:00      
RE: SDCC Compiler            01/01/70 00:00      
RE: SDCC Compiler            01/01/70 00:00      
RE: SDCC Compiler            01/01/70 00:00      
RE: SDCC Compiler, Michael Schmitt            01/01/70 00:00      
RE: SDCC Compiler, @Michael and @Peter            01/01/70 00:00      
RE: SDCC Compiler            01/01/70 00:00      
RE: SDCC Compiler            01/01/70 00:00      
RE: SDCC Compiler, @ Michael Schmitt            01/01/70 00:00      
RE: SDCC Compiler            01/01/70 00:00      

Back to Subject List