home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 20706 < prev    next >
Encoding:
Internet Message Format  |  1993-01-05  |  1.9 KB

  1. Path: sparky!uunet!olivea!apple!goofy!mumbo.apple.com!gallant.apple.com!delos.apple.com!user
  2. From: shebs@apple.com (Stan Shebs)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: what is the best C compiler
  5. Message-ID: <shebs-050193104435@delos.apple.com>
  6. Date: 5 Jan 93 18:54:12 GMT
  7. References: <1992Dec19.165625.2597@ll.mit.edu> <bauer-221292105134@134.60.68.23> <keith-221292125608@kip-28.taligent.com> <1993Jan1.145255.24376@netcom.com>
  8. Sender: news@gallant.apple.com
  9. Followup-To: comp.sys.mac.programmer
  10. Organization: Apple Computer Inc.
  11. Lines: 29
  12.  
  13. In article <1993Jan1.145255.24376@netcom.com>, jimlynch@netcom.com (Jim
  14. Lynch) wrote:
  15. > Keith Rollin sed:
  16. > GNU C lost a lot of ground because it was unable to convert normal
  17. > branches into short branches when appropriate.
  18. > One of the beautiful parts of GNU c is that you can change this, and probably
  19. > Keith's other complaints as well... How? by editing the machine description
  20. > and recompiling.
  21.  
  22. Actually, short branches can't be handled easily by GCC, because the
  23. compiler doesn't normally keep track of the lengths of instructions;
  24. instead, it has huge numbers of fprintf calls that build up the asm
  25. text in a single pass.  So although GCC supports many wonderful
  26. features, shortening branch addresses is not one of them.
  27.  
  28. Fortunately, the MPW Asm has an amusing quirk, which is that it
  29. reliably identifies short branches without being able to actually
  30. generate them.  So, Keith put together some code a year ago that
  31. just collects the warning messages and bashes the asm code, then
  32. reruns the assembler.  You can keep rerunning until the assembler
  33. no longer issues any warnings...  Anyway, it's incorporated into
  34. a new release of MPW GCC 1.37.1 that I've been preparing over the
  35. past month, as an interim release until 2.x is available.  Should
  36. be ready any day now! (yeah yeah, promises promises :-) )
  37.  
  38. Stan Shebs
  39. Apple ATG System Software
  40. shebs@apple.com
  41.