home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!wupost!spool.mu.edu!agate!stanford.edu!rock!concert!duke!dsb
- From: dsb@duke.cs.duke.edu (D. Scott Bigham)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: Sozobon C - a free C for the Mac, too?
- Message-ID: <725766149@majors3.cs.duke.edu>
- Date: 31 Dec 92 01:42:30 GMT
- References: <29848@castle.ed.ac.uk>
- Distribution: comp
- Organization: n. Arrangement in an orderly or logical fashion. See "miracle".
- Lines: 53
-
- From the Holy Book of <29848@castle.ed.ac.uk>
- as spake by ngse18@castle.ed.ac.uk (J R Evans) :
-
- >[wishes for a non-proprietary C compiler for the Mac]
-
- > [...] A group describing themselves as Sozobon Limited
- >put together a very nice K&R C for the Atari a couple of years ago, which
- >has seen a fair bit of use in that community, where most street machines
- >can't even load gcc, still less compile it.
-
- Which is why it's my C compiler of choice.
-
- The first question that occurs to me is which version of Sozobon C
- you're using. The last official Sozobon Ltd. version released for the
- Atari is 2.0, which was reportedly still peppered with bugs. The Atari
- version has been picked up and maintained under the name Heat-n-Serve C
- by Ian Lepore [who has, unfortunately, apparently vanished into the
- stratosphere :-( ].
-
- > [...] The few initial problems I had were
- >connected with Sozobon's assumption that sizeof(int)=4, whereas Think C
- >uses sizeof(int)=2,
-
- Case in point. The latest versions of HSC set sizeof(int)=2.
-
- >So given that we can have a basic small compiler running quickly, just how
- >big a job might it be to make this produce Mac code? Comments sought!
- >[e.g. Sozobon doesn't know about the specialised purposes assigned within
- >the Mac to A5, but apart from telling the compiler to leave A5 alone,
-
- Code generation and output will be most of what you'll need to change in
- this regard. For instance, you'll have to arrange to output a
- Mac-shaped executable header rather than a TOS-shaped one, and do the
- appropriate magic with resource forks and data forks, and doubtless
- other things I'm better off not knowing about ;).
-
- >I guess most of this stuff will appear in the libraries? Is that so? --
-
- This is where I see your major problems. The provided library source
- is riddled with TOS system calls and therefore will be mostly useless on
- the Mac. My advice would be to find a PD standard C library
- implementation for the Mac and tailor it to Sozobon.
-
- >Russ Evans
- >British Geological Survey, Edinburgh
- >e_gs18@va.nmh.ac.uk ... ngse18@castle.ed.ac.uk
-
- -sbigham
- --
- Scott Bigham | The opinions expressed above are
- dsb@romeo.cs.duke.edu | (c) 1992 Hacker Ltd. and cannot be
- bigham@hercules.acpub.duke.edu | copied or distributed without a
- (but not for long) | Darn Good Reason(tm).
-