Bob Larson <BLARSON%ECLD@usc-ecl.ARPA> (01/04/85)
The undocumented -store_owner_field option will cause routine names to be displayed by the dmstk command. This will be quite useful tracking down pointer faults to those of us that do not have DBG for C. (It also makes programs longer and slower, and seems to have been used to compile the C library.) I'm using Prime C version 1.1 - 19.1. It's the latest version as far as I know. Has anyone else tried to figure out the PMA put out by the -explist option? It doesn't make any sense until you figure out it isn't in order. Bob Larson <Blarson@Usc-Ecl.Arpa> -------
jack@vu44.UUCP (Jack Jansen) (01/06/85)
[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.