System X Cmajor Compiler

sxcmc is the System X Cmajor command-line compiler for Windows. It compiles Cmajor code to System X intermediate code (*.i) that is then compiled to System X assembly code (*.s) and then to System X object code (*.o) using System X intermediate code compiler and assembler libraries. The object code files are archived to System X libraries (*.a) using the System X archiver library. Libraries and object code files are linked together to System X executables (*.x) using the System X linker library. The executable files can be executed in a System X virtual machine using System X executor sxx and debugged using a graphical System X debugger sxdb.

Usage: sxcmc [options] { project.cmp | solution.cms }

long option short option description note
‑‑help ‑h Print help and exit.
‑‑verbose ‑v Be verbose.
‑‑config=CONFIG ‑c=CONFIG Set configuration to CONFIG (debug | release). Default is debug. Release mode not yet implemented.
‑‑optimization‑level=LEVEL ‑O=LEVEL Set optimization level to LEVEL=0-3. Defaults debug=0, release=2. Has no effect currently because System X optimizer not yet implemented.
‑‑rebuild ‑u Build although sources not changed.
‑‑clean ‑e Clean given projects and solutions.
‑‑build-threads=N ‑bt=N Set number of build threads to N. By default projects in a solution are built using a separate thread for each project up to the number of cores in the machine.
‑‑single-threaded-compile ‑st Compile all source files in a project using a single thread. By default each source file is compiled using a separate thread for each source file up to the number of cores in the machine.
‑‑pass=PASS ‑p=PASS Process intermediate code by running PASS. No passes except code generation pass currently implemented.