First page Back Continue Last page Overview Graphics
Linker Command File Keywords:
+seg <type> <options> starts a new segment of type <type> characterized by <options>.
- -b0xnnnn set starting address.
- -n <name> name the segment.
- -a <name> place segment after section <name>.
- -m0xnnnn set maximum segment size.
Addresses where program sections are placed must be specified. The filenames to be linked (file.o) are then listed separated by spaces. Libraries (if any) to be linked in are specified as well. If other object files need to be placed in different sections, new sections can be setup and the object files listed after this setup.
A segment is a block of memory in a processor where code or data from program sections are loaded.
A typical use of the –a modifier would be to append a segment after another segment. For example a const segment could follow a code segment.
If using the .bsct section it must start in the first page of memory (0-$ff).
Variables in the .bsct section must not go beyond address $ff.