On Tue, 09 Mar 2004 19:16:56 +1100, Johnathan
<zork_666@[EMAIL PROTECTED]
> wrote:
>arargh403NOSPAM@[EMAIL PROTECTED]
wrote:
>> I bought a copy of the Standard in order to figure out if I could get
>> BCET to comply. The Standard is a .PDF of scanned pages with the text
>> OCR'ed (but never edited - it has errors) for searching purposses.
>> The PDF is 20 meg, and the actual text is about 600k.
>
>Ouch. I was going to write a subset of Modula-2 actually, and found a
>professor at a local university with a copy. The Modula-2 standard was
>several hundred pages and absolutely unreadable. I am wondering if it's
>the same for the BASIC standard?
Well, I don't know about 'absolutely unreadable', but the Basic
standard is certainly long, boring, and written in a style that you
might call 'Standarize'. I gave up actually reading it, and just use
it as a reference. Sometimes.
>I think I might even go back to my original idea of Modula-2/Pascal
>subsets, especially now that you mention there's little scope for
>optimisation of any kind (it's certainly the case my original will use
>calls to the standard C library).
The BCET code generator emits pretty simple code, for:
C = A + B
you get:
lod A
lod B
add
sto C
which BOPT changes to:
lod A
add B
sto C
>
>> There isn't too much that can be done in terms of code optimaztion.
>> Basic generally winds up doing so many library calls, that there isn't
>> much left to optimize. Take a look at the intermediate files of a
>> BCET compile.
>
>You've worked on BCET since 1992? What was that paper you mentioned in
>the FAQ which gave you a hint about code generation?
I believe it was this one:
http://www.cs.princeton.edu/software/iburg/iburg.pdf
and the .PS files in this one:
ftp://ftp.cs.princeton.edu/pub/packages/iburg.zip
>
>> Gee, that's where I was, 12 years ago.
>
>12 years... hmmm. Long road ahead. :)
It was a part time project most of the time. If I had had any formal
schooling on the subject, it would gone faster.
--
Arargh403 at [drop the 'http://www.'
from ->] http://www.arargh.com
BCET Basic Compiler Page: http://www.arargh.com/basic/index.html
To reply by email, remove the garbage from the reply address.


|