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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/12/02 13:02
Read: times


 
#29070 - RE: Define Vs Constant (Andy)

Just a precision: in some 8051 compilers (Raisonance, I don't know for the others) declaring

const char msg[] = "ACME Wotsit v2.03";

will not automatically store the variable in code. For this you need to write a more explicit

code char msg[] = "ACME Wotsit v2.03";

I'm interested in opinions on this: do you believe that a variable with a const qualifier should automatically go in code? Maybe make this an option?

Regards,

Luca


List of 12 messages in thread
TopicAuthorDate
Define Vs Constant            01/01/70 00:00      
RE: Define Vs Constant            01/01/70 00:00      
RE: Define Vs Constant            01/01/70 00:00      
RE: Define Vs Constant (Andy)            01/01/70 00:00      
RE: Define Vs Constant Luca            01/01/70 00:00      
RE: Define Vs Constant (Andy)            01/01/70 00:00      
RE: Define Vs Constant (Luca            01/01/70 00:00      
RE: Const in code            01/01/70 00:00      
RE: Const in code, Andy            01/01/70 00:00      
RE: Const in code, Andy            01/01/70 00:00      
RE: Const in data, Luca            01/01/70 00:00      
RE: Const in code, Luca            01/01/70 00:00      

Back to Subject List