Please test my compiler

BlitzMax Forums/BlitzMax Programming/Please test my compiler

Otus(Posted 2008) [#1]
I'm working on a compiler from Blitz-like basic to the Common Intermediate Language (the .NET assembly language). I have a version that works for a subset of features. Any bug reports are welcome.

You can download the source and an executable for Windows (GPL licensed) here: http://cilbasic.googlecode.com/files/cilbasic-r15.zip

The WIP name is cilbasic, which sucks. I'm accepting suggestions :)

For what works, see the readme file.

Ps. If you are planning to view the source, please be warned that the code is crappy.


ziggy(Posted 2008) [#2]
Does this compiler implements the codedom interface? I'll give it a go, I'm interested if it also works with the mono framework.


slenkar(Posted 2008) [#3]
in the help file do you mean ildasm.exe? (instead of ilasm.exe)
if so it doesnt work with .NET


ziggy(Posted 2008) [#4]
ildasm is a dissasembler, he's talking about the ilasm wich is the assembler.
çit works seems to work here


slenkar(Posted 2008) [#5]
i used the windows search tool to find the path for ilasm.exe in c:\program files\

but it couldnt be found


Otus(Posted 2008) [#6]
With Mono, the tool is ilasm.bat. With .NET it is ilasm.exe. Either way it should be in your PATH variable and will most likely run without the extension. You may need the .NET SDK.

I'm using Mono only at the moment, so I'm not sure it will work with .NET.

Does this compiler implements the codedom interface?


No, it would be impossible at this point, as I'm programming it in BlitzMax. The compiler creates CIL instructions which are assembled using ilasm. CodeDOM is a possibility in the future.


ziggy(Posted 2008) [#7]
Baybe when the compiler can compile itself?