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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/12/05 08:30
Read: times


 
#84813 - const
Responding to: ???'s previous message
Russell Bull said:

With the IAR and Raisonance compilers, the 'const' operator declares the variable as unable to be written and puts it into rom. I dare say Keil is similar

Not necessarily; eg, to choose one at random,
#include <string.h>

int strpos (
  const char *string,   /* string to search */
  char c);
Clearly, a parameter cannot be passed in ROM!



List of 9 messages in thread
TopicAuthorDate
Locating a String in ROM            01/01/70 00:00      
   you did            01/01/70 00:00      
   Hmm            01/01/70 00:00      
      manual!            01/01/70 00:00      
         Assigning adresses            01/01/70 00:00      
            Not what I meant!            01/01/70 00:00      
   OK!            01/01/70 00:00      
      Strings in ROM            01/01/70 00:00      
         const            01/01/70 00:00      

Back to Subject List