OS-Dev Compiler

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Tux

Re:OS-Dev Compiler

Post by Tux »

I am done with the preprocessor engine.
I did 2/4 stages of the compiler. The thing is that some preprocessor flags have to stay after the preprocessor is done. Here are they:
$protect on/off //Compiler pus jumps on vars.
$filter on/off //See example

$filter on
Ret5():
retb 5;

Ret6():
retb 6;
$filter off

start():
db five=Retb5();

On compilation, the compiler won't include Ret6() because it ain't used :)
Post Reply