Frequently Asked Questions

How can I force the compiler to place a block of variables into a specific block of RAM?

The following example uses typemod to create a custom declarator for Bank 1, and the uses the #type pragma to fix all following data definitions to Bank 1 declarator:
typemod <,,,0x100,0x1ff> user_ram_block;

#type default=user_ram_block 

/*

   Any code here will be between 0x100 and 0x1FF in RAM (Bank 1)
   
   You can also #include code here.

*/

#type default=    //return memory allocation back to normal

C-Aware IDE Demo
Embedded C Learners Kit
EZ App Lynx