CompuServe Messages

#Lattice C

#: 4054 S1/SoftwareForum unknown
    03-Jan-86 22:03:10
Sb: #3852-#Lattice C
Fm: Larry Miller 72336,3241
To: Bob Perez 76003,102

This message turned up in search, but its forum couldn’t be identified from the original transcript, so it may not be linked into its thread.

Bob, shouldn't the loader take care of that? What Jack (and I) are wondering is: do you have to use the pc-relative addressing mode? The loader could (does?) readjust addresses to point to various sections of the program. In CP/M-68k land, you just indicate to the assembler where program is (.text) and initialized data (.data) and uninitialized storage (.bss). The loader adjusts addresses relative to these areas. Of course, since there is no scatter-loading, the loader's job is much simpler; it just adds the current offsets to the bases of the 3 sections to get absolute addresses. Mayhap I am misunderstanding, but the implication you guys are giving is that you MUST use the pc-relative addressing mode (or, more often, an address-register relative mode). Come to think of it, I don't eben know HOW to invoke pc-relative addressing…….. -Larry-