Problem with "TO" command in linker command file

I have quite a lengthy (but otherwise functional) linker command file I use to position all my segments to my liking.

What I want to do, however, is force the output name of the ABS and the HEX file.

The Utilities book shows the "TO Sample.ABS" as a way to do this, but I cannot find a place to put such a line in the linker command file where it doesn't cause a linker error.

Example of my .lin file (clipped)

CODE (2000H, seg1( 100h), seg2) &&
STACK( ?Stack ( 0B0H ) ) &&

RAMSIZE(256) &&
NOOVERLAY NOLINES PAGELENGTH(10000)

Where in this file can I place the "TO" directive where it won't hatch the command line?

Parents
  • The TO-command must be placed right after the list of object modules. For example:

    a.boj, b.obj, c.obj TO xx.abs
    PRINT(xx.map)
    RAMSIZE(256)
    

    You need not use the "&&"-sysntax if you are running the linker from a command file. The name of the hex file is specified in the command line of the hex conversion utility you are using (oc51,oh51).

    HHK


Reply
  • The TO-command must be placed right after the list of object modules. For example:

    a.boj, b.obj, c.obj TO xx.abs
    PRINT(xx.map)
    RAMSIZE(256)
    

    You need not use the "&&"-sysntax if you are running the linker from a command file. The name of the hex file is specified in the command line of the hex conversion utility you are using (oc51,oh51).

    HHK


Children
More questions in this forum