home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / mac / programm / 20437 < prev    next >
Encoding:
Text File  |  1992-12-30  |  2.3 KB  |  46 lines

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