Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!gem.mps.ohio-state.edu!ginosko!uunet!mcsun!ukc!edcastle!aiai!richard From: richard@aiai.ed.ac.uk (Richard Tobin) Newsgroups: comp.lang.c Subject: Re: entry at other than main (was want to know) Message-ID: <785@skye.ed.ac.uk> Date: 23 Aug 89 13:31:53 GMT References: <8487@bsu-cs.bsu.edu> <2980@solo9.cs.vu.nl> <182@sunquest.UUCP> <2563@trantor.harris-atd.com> <19164@mimsy.UUCP> <15127@dartvax.Dartmouth.EDU> <10797@smoke.BRL.MIL> Reply-To: richard@aiai.UUCP (Richard Tobin) Organization: AIAI, University of Edinburgh, Scotland Lines: 17 In article <10797@smoke.BRL.MIL> gwyn@brl.arpa (Doug Gwyn) writes: >A language-independent linker cannot possibly know what a programming >language's startup requirements are, therefore it cannot arrange the >set-up necessary for arbitrary entry points. What? It might not be possible to add to an existing system, but there's no reason why the compiler can't put something in the .o (or equivalent) file telling the linker what initialisation is required. -- Richard -- Richard Tobin, JANET: R.Tobin@uk.ac.ed AI Applications Institute, ARPA: R.Tobin%uk.ac.ed@nsfnet-relay.ac.uk Edinburgh University. UUCP: ...!ukc!ed.ac.uk!R.Tobin