ExeGen is a simple command line tool for producing self contained executable binaries from Bosque source code. The tool takes the following parameters:
-e --entrypoint [entrypoint]
to optionally specify the entrypoint function for the executable -- defaults to"NSMain::main"
-o --outfile [outfile]
to set the name of the output exe -- defaults toa.exe
ora.out
-c --compiler [compiler]
to select the compiler to invoke -- defaults toclang
on Windows and on Linux/MacOS-l --level"
which can be used to set the compiler build level at:- debug -- all asserts/pre/post/invariant checks are enabled, debug symbols are produced, and no optimization is done
- test -- only test/release checks are enabled, debug symbols are produced, and light optimization is performed
- release -- only release checks are enabled, no symbols are produced, and aggressive + platform specific optimization is done
-f --flags
which can be used to send additional flags to the C++ compiler, for example:- include and library search paths
- libraries for linking with the executable
- optimization and debugging flags