Page 2 of 2

Re:OS-Dev Compiler

Posted: Sat Jun 28, 2003 9:43 am
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 :)