| ||||||||
Technical Support Support Resources Product Information | BL51: SETTING THE SIZE OF CODE SPACEInformation in this article applies to:
QUESTIONIs there a way to get the linker to recognize a maximum size of 4K or 8K for code space? ANSWERBy default, the linker recognizes that the address space of the CODE memory space is from 0x0000 to 0xFFFF or 64K. You may change the starting and ending address of the CODE space using the linker's CODE directive as follows: BL51 PROG.OBJ CODE ( 0 - 0x7FFF ) In µVision, you may open the "Options for Target" window, find the "Eprom" field and type the starting address and the memory size. For example, if you desire 32K for CODE space starting at address zero, you may type 0x0000 as the starting address and 0x8000 for memory size; this results in an address range from 0x0000 to 0x7FFF. SEE ALSOLast Reviewed: Thursday, June 17, 2004 | |||||||
| ||||||||