[comp.sys.amiga.tech] Just puzzled...

mapjilg@bath.ac.uk (J I L Gold) (03/26/90)

Just a quick question about the Lattice C compiler, me being pretty
ignorant of technical details. I'm writing a colour font editor at
the moment, and added an extra menu option a couple of days back.
Up to then, my compiler command went lc -L -cist FedUP.c and all
went well. However, I suddenly got the message from BLink "(some
variable) range > 64k. Try -b0 on LC". Fine, I looked up -b0 and that
changes 16 bit addressing to 32 bit. I can handle that. However, when 
I stuck the -b0 in, I STILL got an (albeit different) message like
"Symbol _IntuitionBase out of range. Try -b0 on LC." So I tried
sticking permutations of far and external around my IntuitionBase 
definition to no avail. I solved the problem finally by changing
-L to -Lt which means (and I'm none the wiser) use a smallcode and
smalldata model. Can anyone explain what the problem originally
was and whether my solution was the "right" one. Cheers :-)

-- 
#  J.Gold                            |    mapjilg@uk.ac.bath.gdr               #
#  University of Bath , UK           |    jilg@uk.ac.bath.maths                #

bsyme@cs.strath.ac.uk (Brian J Syme IE88) (03/27/90)

In article <1990Mar26.110056.15187@bath.ac.uk> mapjilg@bath.ac.uk (J I L Gold) writes:
>           However, I suddenly got the message from BLink "(some
>variable) range > 64k. Try -b0 on LC". Fine, I looked up -b0 and that
>changes 16 bit addressing to 32 bit. I can handle that. However, when 
>I stuck the -b0 in, I STILL got an (albeit different) message like
>"Symbol _IntuitionBase out of range. Try -b0 on LC." So I tried

Hmmm. Sounds like you've hit the irritating object module size limit problem.
If (and it's what it looks like to me) your program is entirely in one file
"FedUP.c" split it into separate modules (you know, initialisation code
in one, user interface in another, file i/o in another, etc.) In addition
to getting around your problem, this is a Good Thing To Do.

Does anyone know if the 5.05 update has addressed this, or is there a version
of BLink that beats it?

-- 
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
<> Brian Syme            <> Why make things difficult, when with just a     <>
<> bsyme@cs.strath.ac.uk <> little more effort you could make them          <>
<>                       <> impossible.                                     <>
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>