Compiling AS MacroAssembler on Linux
Some notes on getting the AS MacroAssembler running on Debian (Windows Subsystem for Linux 2, although that shouldn't make a difference).
Precompiled binaries aren't available for Linux, so it's a case of downloading and compiling the C source code. The only tricky bit is getting the compile options set correctly.
- Download and extract the source code:
wget http://john.ccac.rwth-aachen.de:8000/ftp/as/source/c_version/asl-latest.41r8.tar.gz gunzip asl-latest.tar.gz tar xvf asl-latest.tar cd asl-latest
- Copy the default
Makefile.def
templatecp Makefile.def.tmpl Makefile.def
- Issue the
make
command to compile the executable. - Make sure that
make test
completes successfully. I didn't bother withmake install
command because that needslatex
installed to build the documentation, and that would add another 500MB to my Debian installation… easier to just symlink theasl
executable from the project where I need it.