System X Linker

The System X Linker links System X object files (*.o) and archive files (*.a) and generates a System X executable EXECUTABLE.x.

Usage: sxlink [options] { FILE.o | FILE.a }

long option short option description
‑‑help ‑h Print help and exit.
‑‑verbose ‑v Be verbose.
‑‑clsid CLASSID_FILE.clsid ‑c CLASSID_FILE.clsid Set class ID input file name to CLASSID_FILE.clsid.
‑‑executable EXECUTABLE.x ‑x EXECUTABLE.x Set generated executable file name to EXECUTABLE.x.

For example linking a program write_numbers in the test/write_numbers/lib directory:
sxlink -v -c write_numbers.clsid -x write_numbers.x write_numbers.a __main__.o %CMAJOR_ROOT%\system-x\system\Main\Main.o %CMAJOR_ROOT%\system-x\system\lib\debug\System.Base.a %CMAJOR_ROOT%\system-x\system\lib\debug\System.Lex.a %CMAJOR_ROOT%\system-x\system\lib\debug\System.RegularExpressions.a