hi,
I use Keil uVision4. I got the sample code 8051_BITIO.ZIP on Keil website http://www.keil.com/download/docs/84.asp
and ,I got HEX file via excuting compile.
I want to confirm Mapfile for code location.
Which is the file for address map in project directory?
http://www.keil.com/support/man/docs/uv4/uv4_b_filetypes.htm
Note that the Map file is not enabled by default.
http://www.keil.com/support/man/docs/uv4/uv4_dg_listing.htm
Thank you for your reply. I can confirm my code's address located on memory via the file BitIO.M51.
LINK MAP OF MODULE: BitIO (MAIN)
TYPE BASE LENGTH RELOCATION SEGMENT NAME -----------------------------------------------------
* * * * * * * D A T A M E M O R Y * * * * * * * REG 0000H 0008H ABSOLUTE "REG BANK 0" IDATA 0008H 0001H UNIT ?STACK
* * * * * * * C O D E M E M O R Y * * * * * * * CODE 0000H 0003H ABSOLUTE CODE 0003H 000CH UNIT ?C_C51STARTUP CODE 000FH 0008H UNIT ?PR?MAIN?MAIN
If I want to change my code's location on memory, is it possible that my code move to 1000H address?
kenji
Yes, the Linker controls allow you to do that - for details see the Linker manual.
Note that the free evaluation version imposes certain restrictions on the code start address:
http://www.keil.com/demo/limits.asp