Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 (MC830713); site vu44.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!teddy!panda!talcott!harvard!seismo!mcvax!vu44!jack From: jack@vu44.UUCP (Jack Jansen) Newsgroups: net.lang.c Subject: Re: Prime C Message-ID: <555@vu44.UUCP> Date: Sun, 6-Jan-85 11:28:52 EST Article-I.D.: vu44.555 Posted: Sun Jan 6 11:28:52 1985 Date-Received: Tue, 8-Jan-85 02:42:46 EST References: <6964@brl-tgr.ARPA> Organization: The Retarded Programmers Home, VU, Amsterdam Lines: 21 [You don't have a PR1ME? Hit `N'!! Quick!!!] Well, here's another question about prime C : Can I compile a prime C program into a .SAVE file? The usual way of doing this (as used for PASCAL or FORTRAN) won't work, since the interface routine insists that the main program is called MAIN. Since the C main() routine is *not* the real main program (it is called by the library routine CC$MAIN, which handles, among others, argc/argv stuff), I haven't found a way to do this yet. Any primaniac got an idea? (By the way, I was thinking of writing a (dirty) PMA routine, called MAIN, that will call CC$MAIN the first time it is called, and call REALMAIN after that. You can then call you C main program realmain(), and everything will (hopefully) work fine. The problem is that I have no knowledge of PMA, and no intention of learning it (I now know about 8 assembly languages, and I think that that's about enough :-)) -- Jack Jansen, {seismo|philabs|decvax}!mcvax!vu44!jack or ...!vu44!htsa!jack If *this* is my opinion, I wasn't sober at the time.