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.deftemplatecp Makefile.def.tmpl Makefile.def - Issue the
makecommand to compile the executable. - Make sure that
make testcompletes successfully. I didn't bother withmake installcommand because that needslatexinstalled to build the documentation, and that would add another 500MB to my Debian installation… easier to just symlink theaslexecutable from the project where I need it.