How do I keep variables in memory in the same order as in the C source file?
The best option would be to allocate as a structure or use multiple RESOLVE statements.
LDF RESOLVE() command is the simplest way to map a function or a variable at specific memory location.(e.g: RESOLVE(<symbol>, <address>))
RESOLVE (_a, 0xFF907000)
RESOLVE (_b, 0xFF907002)
RESOLVE (_c, 0xFF907004)