home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / dsp / 2875 < prev    next >
Encoding:
Internet Message Format  |  1992-12-28  |  1.2 KB

  1. Path: sparky!uunet!cs.utexas.edu!sun-barr!news2me.EBay.Sun.COM!cronkite.Central.Sun.COM!texsun!wb9rxw!kf5iw!gmp!greg
  2. From: greg@gmp.lonestar.org (G.R. Basile)
  3. Newsgroups: comp.dsp
  4. Subject: Re: Motorola's gcc diffs?
  5. Message-ID: <R12HwB1w164w@gmp.lonestar.org>
  6. Date: 28 Dec 92 15:54:02 GMT
  7. References: <BzvJAM.H8C@world.std.com>
  8. Organization: GMP Research Co., Dallas TX
  9. Lines: 21
  10.  
  11. moshier@world.std.com (Stephen L Moshier) writes:
  12.  
  13. > The one I tried is called Version 1.03.  When you try to compile
  14. > something with it, it bombs when it gets to the point of looking
  15. > for the non-existent optimizer.  The illegal instruction sequences
  16. > include using an address register on the instruction after loading it,
  17. > and doing a subroutine return on the instruction after modifying
  18. > the system stack (i.e. popping the status).
  19.  
  20. This little problem has been around since Motorola introduced their first
  21. C compiler ( which by the way, had so many bugs it was practically useless).
  22.  
  23. The problem can be solved by adding nops after the register loads and system
  24. stack modifies. The Motorola assembler will add the nops automatically if 
  25. you use the -c switch. I have yet to play with GNU stuff.  
  26.  
  27. Does anyone know why the compiler does not add the nops?
  28.  
  29.  
  30. Greg Basile
  31. greg@gmp.lonestar.org
  32.