Search the web
Sign In
New User? Sign Up
mocka · The Mocka and Modula-2 mailinglist.
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Plov   Message List  
Reply | Forward Message #693 of 707 |
Gents,

It took me years but after all it wasn't as difficult as I imagined. I
have a working version (in alpha stage) of a crosscompiler.

The compiler accepts the PLOV language (simplified version of Modula-2)
and produces PALO.

PALO is an intermediate language. It needs a few backends (for each
processor architecture) that yet have to be written. Still, PALO is a
Forth like intermediate language so the backends can also be relatively
simple.

Here http://fruttenboel.verhoeven272.nl/m4m/Plov10.html is the latest
version that compiles the wikitest program.

Why compile to an intermediate language? For one, because it is easier
to do. But also, if I make another compiler for another language, it
will also produce PALO code and can be used with the same ALTO backends

Some characteristics of PLOV:

- only one datatype
- no nested procedures
- LOOP, REPEAT, WHILE, IF statements (can be nested very deep)
- no punctuation required (i.e. no ; to terminate statements)
- local variables but no PROCEDURE arguments

--
Met vriendelijke groeten,

Jan Verhoeven
http://fruttenboel.verhoeven272.nl



Fri Sep 5, 2008 10:03 pm

fruttenboel
Offline Offline
Send Email Send Email

Forward
Message #693 of 707 |
Expand Messages Author Sort by Date

Gents, It took me years but after all it wasn't as difficult as I imagined. I have a working version (in alpha stage) of a crosscompiler. The compiler accepts...
Jan Verhoeven
fruttenboel
Offline Send Email
Sep 5, 2008
10:02 pm

Congratulations, Jan!, nice work. Is this in the way of your universal microcontroler compiler project? Jes....
Jes
jconsuegra
Offline Send Email
Sep 6, 2008
5:32 am

... Thanks, Jes. ... It is the first step. I tried many approaches but this one was succesfull. -- Met vriendelijke groeten, Jan Verhoeven ...
Jan Verhoeven
fruttenboel
Offline Send Email
Sep 6, 2008
11:50 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help