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

  1. Newsgroups: comp.compilers,comp.lang.basic
  2. Path: sparky!uunet!think.com!spdcc!iecc!compilers-sender
  3. From: maniattb@cs.rpi.edu (Bill Maniatty)
  4. Subject: Re: Why is compiled basic slower than C? (Basic is the future)
  5. Reply-To: maniattb@cs.rpi.edu (Bill Maniatty)
  6. Organization: Compilers Central
  7. Date: Wed, 12 Aug 1992 20:48:27 GMT
  8. Approved: compilers@iecc.cambridge.ma.us
  9. Message-ID: <92-08-059@comp.compilers>
  10. References:  <92-08-042@comp.compilers>
  11. Keywords: Basic, C, performance
  12. Sender: compilers-sender@iecc.cambridge.ma.us
  13. Lines: 31
  14.  
  15. Glenn_Johansson@f313.n203.z2.fidonet.cd.chalmers.se writes:
  16. |> 2. Why is the basic compilers creating a slower product than the C
  17. |> compilers?
  18.  
  19. Slower in what sense, rate of compilation, or the run time speed of
  20. executables generated.  C requires more than one pass for compilation, and
  21. therefore compiles slower than Basic.  Basic is much easier to compile and
  22. interpret than C (recall in the beginning of the PC movement Basic was the
  23. first higher level language for many machines, Altair, Commodore, Apple,
  24. IBM).  The address space for a Basic interpreter/compiler is much smaller
  25. than for C.
  26.  
  27. C is a more accurate representation of the underlying hardware, and it is
  28. possible for the programmer to take advantage of that knowledge.  Basic is
  29. not a stack oriented language and cannot take advantage of the hardware
  30. stack the same way that 'C' can.  The C programmer has access to low level
  31. (by that I mean close to the hardware) operations.  C supports bit map
  32. management, pointers, compile time constant folding, the register
  33. qualifier etc.
  34.  
  35. Also since Basic is not suitable for implementation of large projects and
  36. system software, much less work goes into optimization.
  37.  
  38. Basic programmers just don't have the same tools at their disposal.
  39.  
  40. Bill
  41. -- 
  42. |    maniattb@cs.rpi.edu - in real life Bill Maniatty
  43. -- 
  44. Send compilers articles to compilers@iecc.cambridge.ma.us or
  45. {ima | spdcc | world}!iecc!compilers.  Meta-mail to compilers-request.
  46.