Content originally posted in LPCWare by TheFallGuy on Thu Jan 06 10:04:50 MST 2011
The C language does not provide any guarantees about where globals will be placed. It all depends on how the compiler (and linker) decide to place them. If you need your char and int to be 'next' to each other, place them in a structure. If you want to physically locate them at a specific location in flash, look at the CRP examples to see how this is done.