Path: utzoo!attcan!uunet!husc6!bloom-beacon!bu-cs!purdue!decwrl!ucbvax!INDYVAX.BITNET!IMHW400 From: IMHW400@INDYVAX.BITNET Newsgroups: comp.os.vms Subject: Re: Print symbionts Message-ID: <8806150841.AA25120@ucbvax.Berkeley.EDU> Date: 9 Jun 88 13:09:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 22 (The original posting concerned symbionts written in C, and the C runtimes' unfortunate habit of blindly zapping stdout whether it was used or not.) The problem *can* be solved; in fact, I was unaware of it, even though I wrote a PSM-based symbiont entirely in C. The main function is, in fact, called "main", but perhaps I avoided the ugliness referenced above by having it end with "return" instead of just running into the closing brace. At any rate, the symbiont can be STOP/RESETted without crashing the job controller.... So far as I can recall, none of my extant C code uses any C runtimes. We use C here for most of our system support and utility projects, and it works very well using only VMS runtime support. You *can* try fiddling with images that have no "main" function, but you will have to find some other way to pass an image start address to the linker. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Mark H. Wood IMHW400@INDYVAX.BITNET (317)274-0749 III U U PPPP U U III Indiana University - Purdue University at Indianapolis I U U P P U U I 799 West Michigan Street, ET 1023 I U U PPPP U U I Indianapolis, IN 46202 USA I U U P U U I [@disclaimer@] III UUU P UUU III