home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / compiler / 1359 < prev    next >
Encoding:
Text File  |  1992-08-12  |  1.2 KB  |  31 lines

  1. Newsgroups: comp.compilers,comp.lang.basic
  2. Path: sparky!uunet!think.com!spdcc!iecc!compilers-sender
  3. From: Hao-yang Wang <hywang@apple.com>
  4. Subject: Re: Why is compiled basic slower than C? (Basic is the future)
  5. Reply-To: Hao-yang Wang <hywang@apple.com>
  6. Organization: Compilers Central
  7. Date: Wed, 12 Aug 1992 18:20:55 GMT
  8. Approved: compilers@iecc.cambridge.ma.us
  9. Message-ID: <92-08-058@comp.compilers>
  10. References: <92-08-042@comp.compilers>
  11. Keywords: Basic, C, performance
  12. Sender: compilers-sender@iecc.cambridge.ma.us
  13. Lines: 16
  14.  
  15. 1. The "ON ERROR GOTO..." statement, as well as other "ON ... GOTO..."
  16. statements, is not easy to implement in a compiled environment.
  17.  
  18. 2. To support the strings in BASIC, we need (a) a heap, (b) some garbage
  19. collecting or reference counting technique.  These will introduce some
  20. overhead in memory management.
  21.  
  22. These language features are not unique to BASIC.  And we can see that the
  23. implementations of any languages with these features can hardly beat the
  24. implementations of C in execution efficiency.
  25.  
  26. Hao-yang Wang
  27. Pai Technology, Inc
  28. -- 
  29. Send compilers articles to compilers@iecc.cambridge.ma.us or
  30. {ima | spdcc | world}!iecc!compilers.  Meta-mail to compilers-request.
  31.