-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
Derek Snider edited this page May 19, 2026
·
2 revisions
madc builds from source on Linux x86-64 systems.
- g++ with C++11 support
- asmjit v1.14 (built from source — see below)
- cmake (to build asmjit)
madc uses asmjit v1.14 for JIT compilation. Build it from source:
git clone https://github.com/asmjit/asmjit.git
cd asmjit
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local
make -j$(nproc)
sudo make install
sudo ldconfigVerify the installation:
pkg-config --modversion asmjit # should show 1.14.x
ls /usr/local/lib/libasmjit.so # library exists
ls /usr/local/include/asmjit/ # headers existNote: The
libasmjit-devapt package installs an older, incompatible version. madc requires the v1.14 build at/usr/local/.
git clone https://github.com/derekbsnider/madc.git
cd madc
make -C srcThe binary lands at bin/madc.
bin/madc tests/testint.madYou should see output like:
123: 123
i: 456
j: 456
sudo cp bin/madc /usr/local/bin/Then you can run madc from anywhere:
madc myprogram.madmake -C src fulltest # unit tests + all integration testsThis runs 260+ unit tests and 280+ integration tests. Everything should pass on a clean build.
- Your First Program — write and run something from scratch
- CLI Reference — command-line flags and options
- ← Back to Home