home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / atari / st / tech / 6426 < prev    next >
Encoding:
Text File  |  1992-12-30  |  3.3 KB  |  72 lines

  1. Newsgroups: comp.sys.atari.st.tech
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!sdd.hp.com!elroy.jpl.nasa.gov!elroy!brad
  3. From: brad@tazboy.jpl.nasa.gov (Brad Pickering)
  4. Subject: Sozobon C for the mac?
  5. Message-ID: <BRAD.92Dec30095444@tazboy.jpl.nasa.gov>
  6. Sender: news@elroy.jpl.nasa.gov (Usenet)
  7. Nntp-Posting-Host: tazboy.jpl.nasa.gov
  8. Organization: Jet Propulsion Laboratory, Pasadena, CA
  9. Date: Wed, 30 Dec 1992 17:54:44 GMT
  10. Lines: 60
  11.  
  12. The following was a follow up to a message that was cross posted to
  13. comp.sys.atari.st.tech and comp.sys.mac.programmer concerning the
  14. posibility of porting Sozobon C to the mac.  I wanted to see if
  15. this would generate some interest from some atari people.
  16.  
  17. basically I would really like too hear from people who know a bit
  18. about TOS, MiNT, and/or Sozobon C, and who wouldn't mind getting
  19. questions from a mac person.
  20.  
  21. Thanks,
  22.   Brad Pickering (brad@tazboy.jpl.nasa.gov)
  23.  
  24. ---
  25. Newsgroups: comp.sys.mac.programmer
  26. From: brad@tazboy.jpl.nasa.gov (Brad Pickering)
  27. Subject: Re: Sozobon C - a free C for the Mac, too?
  28. In-Reply-To: ngse18@castle.ed.ac.uk's message of 29 Dec 92 16:32:46 GMT
  29. Followup-To: comp.sys.mac.programmer
  30. Nntp-Posting-Host: tazboy.jpl.nasa.gov
  31. Organization: Jet Propulsion Laboratory, Pasadena, CA
  32. Distribution: comp
  33. Date: Tue, 29 Dec 1992 19:27:39 GMT
  34.  
  35. I think this is a great idea.  In fact, this is sort of what I have been
  36. playing with for the past couple of weeks.  What I want to do is emulate
  37. TOS (the atari OS) on the mac so that all of the atari tools can work
  38. on the mac with no changes.  I started with the source to MiNT and
  39. compiled it under Think C tweeking it quite a bit so that it wouldn't
  40. trample the mac os.  So far I have been able to run some very simple
  41. programs like 'echo' and 'cp'.  I still have lots of problems with
  42. more complicated programs like 'sh'.  I am especially having difficulty
  43. with the fork calls.  It has something to do with the code I modified
  44. so that all processes would run in supervisor mode.  Any way, I just
  45. ordered a book on the 68040 so that I could investigate running user
  46. level code on my mac.
  47.  
  48. Assuming we got something like this running, we could use the same sort
  49. of techniques that MacMINIX uses to write mac code useing a regular
  50. K&R compiler.  In mac minix, mac traps are interfaced by code that loads
  51. the appropriate a5 from a global variable before calling the trap.
  52. Instead of pc relative code generation like most mac compilers, atari
  53. compilers generate relocation information so that it can be relocated
  54. at execution time.  On the mac, we could have the first routine be
  55. a pc relative routine that loads and relocates the TOS formatted exectable
  56. from a resource.  One of the biggest problems with this is in debugging.
  57. Macsbug expects the names of routines to be imbedded into the code at
  58. the end of each routine.  Sozobon C doesn't put this information in
  59. the code, so bugs are much more difficult to track down.
  60.  
  61. My opinion is that the goal of getting Sozobon C generating Mac Programs
  62. is very doable.  I am very curious about what the atari people think
  63. about this.  Are there any atari people out there who know a bit about
  64. TOS, MiNT, and/or Sozobon C who wouldn't mind a few questions from
  65. some mac people.
  66.  
  67. Anyway, theres my comments.  I would certainly like to see this discussion
  68. continue.
  69.  
  70. Brad Pickering
  71.  
  72.