Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!cs.utexas.edu!uunet!bfmny0!tneff From: tneff@bfmny0.UUCP (Tom Neff) Newsgroups: comp.lang.c Subject: Re: entry at other than main (was: want to know) Message-ID: <14626@bfmny0.UUCP> Date: 5 Sep 89 12:33:31 GMT References: <19474@gryphon.COM> Reply-To: tneff@bfmny0.UU.NET (Tom Neff) Organization: ^ Lines: 16 In article <19474@gryphon.COM> bagpiper@pnet02.gryphon.com (Michael Hunter) writes: >uhhh.....couldn't you fake a different entry point by not naming any function >main and then using the macro preprocessor to name something main. Oh yes if you have the luxury of RECOMPILING then you can play all sorts of tricks. I have presumed right along that what these folks want is to decide ex post facto where in an already-compiled set of object files you want the program entry point to go. In fact it's even easier if you have the luxury of REASSEMBLING the usual front-end code which is REALLY invoked by the OS loader, and which then calls main() as a normal subprogram. Again, I assume people want to be able to choose their entry point even without this ability. -- Annex Canada now! We need the room, \) Tom Neff and who's going to stop us. (\ tneff@bfmny0.UU.NET