Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!sun!pepper!cmcmanis From: cmcmanis%pepper@Sun.COM (Chuck McManis) Newsgroups: comp.sys.amiga Subject: Re: Lattice C V5.0 #include bug Message-ID: <92203@sun.uucp> Date: 2 Mar 89 22:33:25 GMT References: Sender: news@sun.uucp Reply-To: cmcmanis@sun.UUCP (Chuck McManis) Distribution: na Organization: Sun Microsystems, Mountain View Lines: 19 In article shadow@pawl.rpi.edu writes: >One question - is it possible to create a compiled C module which can >be linked alone, without being linked to the lib:c.o startup module or >the lib: libraries? (Clearly the libraries can be ditched if nothing >in them is used. The question is whether or not you MUST use assembly >for the startup module...) Yes, with Lattice 5.0x it is possible to have nothing but blink myprog.o to myprog (which sometimes you can just execute myprog.o if there are no externals at all) Essentially, you will have to define your lib pointers internally and use the prototypes for direct linkage to the libraries. --Chuck McManis uucp: {anywhere}!sun!cmcmanis BIX: cmcmanis ARPAnet: cmcmanis@sun.com These opinions are my own and no one elses, but you knew that didn't you.