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

Back to Subject List

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


 
#155553 - Ripped from the Keil help file
Responding to: ???'s previous message
code
The code memory type may be used for constants and functions. This memory is accessed using 16-bit addresses and may be on-chip or external.

For constants (ROM variables), code memory is limited to 64K. Objects are limited to 64K and may not cross a 64K boundary. Constant variables declared code are located in the CODE memory class.
For program code (functions), code memory is limited to 64K. Program functions are stored in the CODE memory class by default. The code memory type specifier is not required.
Declare code objects as follows:

unsigned char code code_constant;

unsigned int func (void)
{
return (0);
}



List of 7 messages in thread
TopicAuthorDate
Defining constants in flash memory            01/01/70 00:00      
   code            01/01/70 00:00      
   is it const or code            01/01/70 00:00      
      Depends on the compiler            01/01/70 00:00      
   Ripped from the Keil help file            01/01/70 00:00      
      Links            01/01/70 00:00      
         ignore this a misplaced post, sorry            01/01/70 00:00      

Back to Subject List