home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!uwm.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!ux2.cso.uiuc.edu!sink
- From: e-sink@uiuc.edu (Eric W. Sink)
- Subject: Re: Sozobon C - a free C for the Mac, too?
- References: <29848@castle.ed.ac.uk> <C01nrF.5ps@news.cso.uiuc.edu> <BRAD.92Dec30101828@tazboy.jpl.nasa.gov>
- Message-ID: <C039Lq.99L@news.cso.uiuc.edu>
- Originator: sink@ux2.cso.uiuc.edu
- Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
- Reply-To: e-sink@uiuc.edu
- Organization: University of Illinois at Urbana
- Distribution: comp
- Date: Wed, 30 Dec 1992 20:15:24 GMT
- Lines: 31
-
- brad@tazboy.jpl.nasa.gov (Brad Pickering) writes:
-
- >MacMINIX uses a standard K&R C compiler that doesn't know anything about
- >using A5 as a globals pointer or about pascal functions. This compiler
- >can be used to generate Mac applications. Traps are called through glue
- >routines that convert the C calling conventions into Pascal calling
- >conventions and setup register A5 from a global variable before actually
- >calling the trap. Global variables are not relative to A5, but absolute
- >addresses that are relocated when the program starts. Subroutines are
- >not called through jump tables but through absolute addresses, also
- >relocated at program startup. Mac applications generated with this
- >compiler have a special CODE 0 resource which contains 1 jump table
- >entry which loads and calls the main program which relocates itself
- >before referencing any global variables. I have used these techniques
- >to build mac applications on a sun using gcc. I don't think that
- >we are very far from a free development system for the mac. It
- >will certainly not be as convenient as Think C, but what can we expect
- >for free.
-
- This is certainly another way to go. Is anyone at TopSoft following
- this thread ? If so, let's have some discussion about the possibilities.
- I just want to see a simple, reliable, free C compiler for the Mac.
- The above mentioned strategy is one way to avoid all the gory details
- of the compiler itself, since decent C compilers without Mac-ish features
- are freely available.
-
- --
- Eric W. Sink, Spyglass | "In all the earth, only humans have the ability
- 1800 Woodfield Drive | to be content in bad situations...
- Savoy, IL 61826 | and vice-versa."
- ---- e-sink@uiuc.edu ---------|---------- 217-355-6000 -----------------------
-