How can compiler place data on ROM in embedded system? -


as know, constant value, initialized data of variable placed in rom (read momory) compiler in embedded system. but, rom read-only, means can't write how can compiler can write these data when programming?

i think rom in embedded system case means eeprom or flash memory meaning writing permission.

is understanding correct in both embedded system os , without os?

but, rom read-only, means can't write how can compiler can write these data when programming?

to answer question, compiler merely creates object files.

these passed linker, decides @ physical address variables end up, typically reading linker script of kind. linker script might like: "program code goes flash section 1, string literals go flash section 2, const variables go flash section 3". linker creates binary file format.

the binary in turn passed chip programmer tool or in-circuit debugger, contains actual routines programming flash.


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -