|
@@ -60,13 +60,13 @@ Some other remarks about the compiler:
|
|
|
|
|
|
|
|
- the "-upto ..." argument makes the compiler stop after a certain phase and
|
|
- the "-upto ..." argument makes the compiler stop after a certain phase and
|
|
|
print the AST (or assembly) at that point. E.g. when you are implementing
|
|
print the AST (or assembly) at that point. E.g. when you are implementing
|
|
|
- context analysis and want to compare your output to that of the refrence
|
|
|
|
|
|
|
+ context analysis and want to compare your output to that of the reference
|
|
|
compiler, use "-upto context" or "-upto context -v 2".
|
|
compiler, use "-upto context" or "-upto context -v 2".
|
|
|
|
|
|
|
|
- The generated assembly code contains comments that shows to which CiviC code
|
|
- The generated assembly code contains comments that shows to which CiviC code
|
|
|
it corresponds. This can be used for relating instructions to AST nodes
|
|
it corresponds. This can be used for relating instructions to AST nodes
|
|
|
during debugging, and we recommend you do the same in your own compiler
|
|
during debugging, and we recommend you do the same in your own compiler
|
|
|
(although it is not required). Note that the last optimization phase
|
|
(although it is not required). Note that the last optimization phase
|
|
|
- (peephpole optimization) strips these comments, so you will need to pass "-v
|
|
|
|
|
|
|
+ (peephole optimization) strips these comments, so you will need to pass "-v
|
|
|
2" or -noopt to actually see them. You can also disable them completely by
|
|
2" or -noopt to actually see them. You can also disable them completely by
|
|
|
passing "-v 0".
|
|
passing "-v 0".
|