🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #5238

Re: Large code

#5238
From: Matthew Dillon
Date: Fri, 07 Sep 1990 19:47
38 lines
1471 bytes
In article <DC'%S+-@masalla.fulcrum.bt.co.uk> S.J.Raybould@fulcrum.bt.co.uk (Simon Raybould) writes:
>
>When I try to link a larg program > 300K together with lattice C V5.05,
>I get Relative address >32768 or something like that to _GfxBase.
>
>I am compiling with -b0
>
>I have tried making the struct GfxBase *GfxBase line near with the __near
>keyword.
>
>I pressume this is because lc.lib was compiled without -b0.
>
>What can I do ??
>
>SJR

    You are declaring more than 64KBytes of data.  Assuming you still want
    to retain small-data model accesses for most variables, simply use
    the __far keyword to take some of your larger data declarations
    outside the small-data-model section.

    Then, when you blink, do not use the SD (small-data) keyword.

    e.g.

    char __far BigAry[80000];

    Remember that any other module that uses BigAry[] MUST extern it as
    __far.

				    -Matt
--


    Matthew Dillon	    dillon@Overload.Berkeley.CA.US
    891 Regal Rd.	    uunet.uu.net!overload!dillon
    Berkeley, Ca. 94708
    USA
Technical Details
Message-ID: <dillon.5842@overload.Berkeley.CA.US>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!samsung!uunet!overload!dillon
References: <DC'%S+-@masalla.fulcrum.bt.co.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!samsung!uunet!overload!dillon
From: dillon@overload.Berkeley.CA.US (Matthew Dillon)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Large code
Message-ID: <dillon.5842@overload.Berkeley.CA.US>
Date: 7 Sep 90 19:47:42 GMT
References: <DC'%S+-@masalla.fulcrum.bt.co.uk>
Lines: 38