Path: 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: Date: 7 Sep 90 19:47:42 GMT References: Lines: 38 In article 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