First page Back Continue Last page Overview Graphics
Linker Command File Example
+seg code1 -b 0x8000 -n code1 # program start address
+seg const1 -a code1 # constants follow code
+seg data1 -b 0x800 # data start address
filename1.o # file(s) to link
filename2.o # file(s) to link
In the above example, segment code1 will be loaded starting at address 8000 hexadecimal. Constants section const1 is loaded immediately following the code. The data segment, data1, starts at address 800 hexadecimal. The 0x preceding numbers is the C language notation for hexadecimal. The linker command file uses this format. This file should have an .lkf extension.