A compiler for the Xi Programming Language
In addition to the features mentioned in the language specification, we also
support downcasting TargetClass#Expression, instanceof, and for-loops.
Example usage of all of these features can be found in examples/hashtable.xi.
With Apache Ant installed and the JAVA_HOME environment variable set, run the
ogc-build script. If building for the first time, ensure you have an internet
connection.
To compile a Xi program:
ogc <filename>
To specify a folder containing interface .ixi files:
ogc -libpath <path> <filename>
To compile and link multiple files, pass all of the files to ogc.
To view all options:
ogc --help
We support the following optimizations:
cseCommon Subexpression EliminationcfConstant FoldinguceUnreachable Code EliminationdceDead Code EliminationcpConstant PropagationcopyCopy Propagation
To compile with no optimizations, pass -O. To compile with only specified
optimizations on, pass -O<opt> for each optimization. To turn specified
optimizations off, pass -O-no-<opt> for each optimization.