I am trying to link code into a ROM image which can be splitted into two regions later. Each region must starts at a predefined location respectively. How do I specify in my C code, and how to instruct linker to perform the link so each object goes to the right region in the image? Ming-I Sun
The Compiler creates the object modules; the Linker assigns their addresses [1] Therefore you need to use Linker options - see the Linker manual. [1] some toolchains have a separate "Locator" which does this