#!/bin/sh source="nesemu1.cc" asmfile="nesemu1.s" objfile="nesemu1.o" # These first few complicated looking lines simply invoke # Intel's compiler. For some reason they made it complicated to use. # The compilation flags inhibit most of the compiler's optimization features. I=/opt/intel/Compiler/11.1/072/bin . $I/iccvars.sh intel64 LD_LIBRARY_PATH=/opt/intel/Compiler/11.1/072/idb/lib/intel64 \ /opt/intel/Compiler/11.1/072/bin/intel64/icc $source \ $(pkg-config sdl --libs --cflags) -std=c++0x \ -O0 -gdwarf-2 -debug all -S -fno-omit-frame-pointer \ -use-intel-optimized-headers -fp-model fast=2 -no-ip \ -unroll0 -no-vec -fno-jump-tables # Then, translate the line&column information within the COMMENTS # of the verbose assembler listing into actual labels with a special # tag so we can recognize them later. cat >line-trans.php < line-listings.txt