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

  1. Newsgroups: comp.compilers
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!wupost!gumby!yale!mintaka.lcs.mit.edu!spdcc!iecc!compilers-sender
  3. From: dbenn@leven.appcomp.utas.edu.au (David Benn)
  4. Subject: Re: Why is compiled basic slower than C? (Basic is the future)
  5. Reply-To: dbenn@leven.appcomp.utas.edu.au (David Benn)
  6. Organization: University of Tasmania at Launceston
  7. Date: Sat, 15 Aug 1992 03:00:47 GMT
  8. Approved: compilers@iecc.cambridge.ma.us
  9. Message-ID: <92-08-080@comp.compilers>
  10. References: <92-08-064@comp.compilers> <92-08-049@comp.compilers>
  11. Keywords: Basic, performance
  12. Sender: compilers-sender@iecc.cambridge.ma.us
  13. Lines: 29
  14.  
  15. In the discussion about BASIC compilers thus far, a recurring theme seems
  16. to have emerged, namely the problem of managing BASIC's run-time dynamics.
  17.  
  18. I have been writing a compiler based loosely on AmigaBASIC - a Microsoft
  19. derivative - for the best part of a year now, and have naturally had to
  20. deal with these kind of issues. Re: strings memory allocation, I have
  21. compromised. Strings in ACE have a default length of 1K. Small, I know.
  22. However, the programmer can optionally declare a variable of any type
  23. including strings. The only non-optional declarations are for arrays. With
  24. strings, the programmer can specify smaller (say 100 bytes or less) or
  25. larger strings (limited only by available memory). For many applications,
  26. 1K is ample. Indeed, 512 bytes is often enough, and I may yet reduce the
  27. default to that. I know that many of you are thinking, "geez what a waste
  28. of memory." I concede that it is not by any means optimal, but it does
  29. avoid having to worry about garbage collection. More importantly, it works
  30. quite well!
  31.  
  32. By the way, if you are interested, I hope to have ACE in the PD sometime
  33. in the next few months. It has everything from simple BASIC stuff to
  34. structures, pointers, turtle graphics, powerful sound and wave statements,
  35. case...end case etc. 
  36.  
  37. Regards...
  38. -- 
  39. dbenn@leven.appcomp.utas.edu.au
  40. David Benn - Applied Computing, University of Tasmania at Launceston.
  41. -- 
  42. Send compilers articles to compilers@iecc.cambridge.ma.us or
  43. {ima | spdcc | world}!iecc!compilers.  Meta-mail to compilers-request.
  44.