Re: @far directive not working as expected



toolchain. You don't seem to even have established whether it's the
compiler or the linker whose behaviour you object to.
I am not sure, but I think it is the linker whose behaviour is causing
me trouble. It may be my syntax and/or the compiler. I really don't
know.


It is using 3 byte(ie far) addressing, BUT it stuck the bloody thing
in near space.

And why is that bad? Is that architecture of addressing functions as
"far" if they are in "near space"? Are you running out of "near"
space?
That is bad because I wanted it in far space. I tried to put in far
space for a reason. Near space is my limiting factor right now.


I am using a Motorolla 9s12DG128 with the cosmic compiler v 4.6a.

Now here's some information you really should have put a lot further
up in your post. Possibly in the Subject:.

OK, maybe should have been higher in the post. At least I included it.

.



Relevant Pages

  • RE: Compile and gone! (Was: Re: VMS>7.3 Linker Manual - I64 Short Data restriction)
    ... Don't know what happened between 8.1 and 8.3 with the Linker or whether ... the compiler requested address constants. ... This form of the 'add' instruction ... relocations that would let the linker fill in the 64-bit literal of a ...
    (comp.os.vms)
  • Re: Fortran Guru requested
    ... > In 20 odd years of VMS Fortran programming, I have never yet seen a compiler ... > at the linker if wires have crossed in this example. ... If you have received the email in error, please notify TransGrid ... individual sender except where the sender expressly and with ...
    (comp.os.vms)
  • Re: c program binary/image in memory
    ... be clear of the usage and the works of this mysterious tool called THE LINKER. ... To be honest, I don't even know what the sections are named on Linux, SCO, AIX or Windows yet I quite happily write C code that runs on all of them. ... works on a toy OS" and "how a compiler _could_ work anywhere". ... Compiler and linker between them generate a linked list of initialisations that need to be done, and the application started code runs along the linked list reading address, size and initial value information and initialising things appropriately. ...
    (comp.lang.c)
  • Re: Using Makefile rather than GreenHills (GHS) Multi .GPJ files
    ... Spontaneously changing link order is an immediate disaster in that situation. ... are passed to the linker, ... Getting your global objects initialised correctly is not hard, but it is easily forgotten - resulting in a program whose correctness is dependant on the link order. ... If you need to specify different compiler flags for some of the files, for example, the makefile is probably the best place to put this information. ...
    (comp.arch.embedded)
  • Compile and gone! (Was: Re: VMS>7.3 Linker Manual - I64 Short Data restriction)
    ... When could one expect to see a new version of the Linker Utility ... the compiler requested address constants. ... relocations that would let the linker fill in the 64-bit literal of a ... time relocations especially for shareable images built that way! ...
    (comp.os.vms)