Path: utzoo!mnetor!uunet!husc6!uwvax!dogie!uwmcsd1!marque!gryphon!cadovax!trwrb!arenberg From: arenberg@trwrb.UUCP (Jeff Arenberg) Newsgroups: comp.sys.apple Subject: Re: APW C, anyone? Message-ID: <788@trwcsed.trwrb.UUCP> Date: 2 May 88 17:07:34 GMT References: <9229@agate.BERKELEY.EDU> <529@n8emr.UUCP> <670@ncrcce.StPaul.NCR.COM> Reply-To: arenberg@trwcsed.UUCP (Jeff Arenberg) Organization: TRW EDS, Redondo Beach, CA Lines: 37 In article <670@ncrcce.StPaul.NCR.COM> rogers@ncrcce.StPaul.NCR.COM (Bob Rogers) writes: >In article <529@n8emr.UUCP> lwv@n8emr.UUCP (Larry W. Virden) writes: >>3. Compress already ported to the IIgs (thanks to a ssuggestion from me to >>someone I know with a APW C compiler). Unfortunately it is over on CIS and >>I havent gotten it or executioner yet . My friend was also wanting >>to convert MicroEmacs 3.9 to the IIgs. > >How suitable is the APW C compiler (and the GS itself) for these kinds of >projects? Can you indeed do "UNIXish" stuff on a IIGS? > >-- > > >Bob Rogers rogers@StPaul.NCR.COM >NCR Comten, St. Paul, MN First, to Larry: If you can find the time, please post the Compress code to comp.binaries. Second, to Bob: Yes the APW C has a more or less complete Unix library as far as file calls (open,creat,fopen, etc), memory allocation (malloc, calloc) and printing (printf, scanf, etc) are concerned. The libraries implement GS toolbox calls to prodos, the memory manager and text manager. If you use the libraries, though, the code has to run in native mode and stdin, stdout and stderr require running under the APW shell, so it will not be portable to any other Apple II other than the GS. The time required to load the compiler and to link can be quite long even for extremely short programs and with a hard disk, so using APW C requires a lot of patiences or a very large ramdisk (2 meg total memory or so). Jeff Arenberg ------------------------------------------------------------ UUCP : ( ucbvax, ihnp4, uscvax ) !trwrb!trwcsed!arenberg ARPA : jarenberg@ecla.usc.edu GEnie: shifty ------------------------------------------------------------