home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / compiler / 1270 < prev    next >
Encoding:
Text File  |  1992-07-29  |  2.0 KB  |  53 lines

  1. Newsgroups: comp.compilers
  2. Path: sparky!uunet!gatech!destroyer!sol.ctr.columbia.edu!eff!world!iecc!compilers-sender
  3. From: moss@cs.umass.edu (Eliot Moss)
  4. Subject: Re: Pros and cons of high-level intermediate languages
  5. Reply-To: moss@cs.umass.edu (Eliot Moss)
  6. Organization: Dept of Comp and Info Sci, Univ of Mass (Amherst)
  7. Date: Sat, 25 Jul 1992 13:06:51 GMT
  8. Approved: compilers@iecc.cambridge.ma.us
  9. Message-ID: <92-07-091@comp.compilers>
  10. References: <92-07-068@comp.compilers> <92-07-086@comp.compilers>
  11. Keywords: C, storage
  12. Sender: compilers-sender@iecc.cambridge.ma.us
  13. Lines: 38
  14.  
  15. acha@CS.CMU.EDU (Anurag Acharya) said:
  16.  
  17. > Wish list:
  18.  
  19. > 1. label variables. Any kind of label variables with any resonable
  20. > restrictions
  21.  
  22. Available from gcc 2.0 and higher; we use it to good effect in our Smalltalk
  23. interpreter (single largest speed improvement we've ever gotten!). So you have
  24. something that's portable from machine to machine, but specific to a given
  25. family of compilers.
  26.  
  27. > 2. A portable way of looking at the stack. Supporting garbage
  28. > collection and call/cc (user-level continuations) would be easier if
  29. > one could traipse up and down the C stack. Currently, such schemes are
  30. > machine and compiler dependent.
  31.  
  32. Sorry, I don't know of any way to do that. And you have to include registers
  33. in the model, too.
  34.  
  35. > 3. Some form of global register assignment. Some annotation scheme
  36. > that allows me to indicate to the C compiler that I would like a
  37. > particular global variable to be stuck in a register (may be a
  38. > particular register if I am willing to give up portability).
  39.  
  40. gcc supports this, but the incantation and possible bad side effects do vary
  41. from machine to machine.
  42. --
  43.  
  44.         J. Eliot B. Moss, Associate Professor
  45.         Department of Computer Science
  46.         Lederle Graduate Research Center
  47.         University of Massachusetts
  48.         Amherst, MA  01003
  49.         (413) 545-4206, 545-1249 (fax); Moss@cs.umass.edu
  50. -- 
  51. Send compilers articles to compilers@iecc.cambridge.ma.us or
  52. {ima | spdcc | world}!iecc!compilers.  Meta-mail to compilers-request.
  53.