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