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
See the Macro Assembler and Utilities for 8051 and Variants User's Guide, A51.pdf All the manuals are on the CD, and are accessible via the 'Books' tab in the uVision Project window.
Can I do it in C instead of playing with assembly?
Who said anything about playing with assembly? Don't be fooled by the title of the manual - the same manual covers the Assembler, Linker, and other utilities. It's the Linker you need!