The MetaForge Compiler (MFC) provides a rich set of commands and options for building and debugging MetaForge programs.
Compile a .mf
file:
python src/compile_metaforge.py <input_file> -o <output_file>
--platform <platform> # e.g., windows, linux, macos
--arch <architecture> # e.g., x64, arm
Include debugging information:
--debug
Control optimization levels:
-O0 # No optimization
-O1 # Basic optimization
-O2 # Full optimization
Enable verbose output for debugging:
-v
python src/compile_metaforge.py examples/hello_world.mf -o build/hello_world.exe --platform windows --arch x64 -v --debug -O2
Master the CLI for full control over your builds!