Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!rutgers!att!news.cs.indiana.edu!ux1.cso.uiuc.edu!ux1.cts.eiu.edu!cfejm From: cfejm@ux1.cts.eiu.edu (John Miller) Newsgroups: comp.sys.mac.programmer Subject: Re: Simple Question on THINK C Message-ID: <1990Dec20.150319.18871@ux1.cts.eiu.edu> Date: 20 Dec 90 15:03:19 GMT References: <32575.276B8C21@stjhmc.fidonet.org> <1990Dec17.221555.16011@groucho> <22264@well.sf.ca.us> Organization: Eastern Illinois University Lines: 32 In article <22264@well.sf.ca.us> oster@well.sf.ca.us (David Phillip Oster) writes: >In article <1990Dec17.221555.16011@groucho> hermens@ted.cs.uidaho.edu (Leonard Hermens ) writes: >_> Or you can use the UNIX compatibility code that >_> puts a window on the screen that acts like a >_> simple UNIX terminal. All I/O is UNIX-like and >_> simple commands like printf will work just fine. >_> >Leonard, I guess you didn't read the message you were replying to. The >unix compatibility package is implemented on top of the Window manager >and quickdraw, and you'll need to include the correct libraries to get the >program to link. > >I've written Mac programs that vary in size from ~2M bytes down to 2bytes. >(The latter was an FKEY). For most programs, you need to include the appropriate >libraries, but if you program just uses ToolTraps, and your own O.S.Trap >glue it is certainly possible to write significant programs that use no >libraries. It is rarely worth it. >-- >-- David Phillip Oster - At least the government doesn't make death worse. >-- oster@well.sf.ca.us = {backbone}!well!oster Well, if the idea is to do some simple processing on the Mac which doesn't need to use the Mac interface, Leonard's suggestion is perfectly sound. Another, perhaps easier way is to merely include the appropriate ANSI library, do appropriate #includes (like stdio.h), and you're home free-- console window provided. This kind of procedure is especially attractive for down-and-dirty crunching without the typical Mac interface overhead. John Miller Music Theory Eastern Illinois University CFEJM@UX1.CTS.EIU.EDU