Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!kuhub.cc.ukans.edu!markv From: markv@kuhub.cc.ukans.edu Newsgroups: comp.sys.amiga.tech Subject: Re: Lattice C : pragma? Whats all this then? Message-ID: <27079.2750fd01@kuhub.cc.ukans.edu> Date: 26 Nov 90 17:31:13 GMT References: <1990Nov10.001056.9736@canterbury.ac.nz> <63@oregon.oacis.org> <26892.273fe53b@kuhub.cc.ukans.edu> Organization: University of Kansas Academic Computing Services Lines: 28 >>Lattice defines several bases in their libraries including DosBase, >>SysBase, MathBase, GfxBase, IntuitionBase, etc. DosBase and SysBase > ^^^^^^^ >>are always valid (the OS gives these to a program when it runs). The > > The OS doesn't open the Dos library, surely thats done by the startup code > LIB:c.o in the case of Lattice ? I don't think so (I'll double check c.a to be sure), but, DOS gives DOSBase in a register to every process on startup (along with other things like the command line) and I am pretty sure Lattice/SAS startup just uses this. Obviously SysBase is fetched from AbsExecBase. > If you don't link in the startup code then you have to set DosBase yourself! True, but my main point is from the point of view of main() of a normal program you never have to worry about SysBase and DOSBase yourself. > SJR -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mark Gooderum /\ \ | / H a p p y Academic Computing Services / v\ -- * -- H o l i d a y s ! :-) University of Kansas /v v\ / | \ /// /__v___\ Only /// /| __ _ Bitnet: MARKV@UKANVAX || \\\ /// /__| |\/| | | _ /_\ makes it Internet: markv@kuhub.cc.ukans.edu \/\/ / | | | | |__| / \ possible ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~