 Question: Wants to put initialized data right after code and be re-initialized as binary
code without using CINIT. Bootloading - would like not to have the CINIT section copy
information from program into data. Rather he would like to have the data section
pre-initialized. The way it works now you need twice as much memory because the data
starts in program memory and gets bootloaded and then moved into data memory. :
Answer: Compile
all constants separately in one .const section and compile separately with -mb option.
Link .const and .bss contiguously - only restriction is that they must both be able to fit
on one 64k page. |