CSC231 nasmld script

From dftwiki3
Revision as of 09:18, 7 November 2012 by Thiebaut (talk | contribs) (Created page with "--~~~~ ---- <source lang="bash"> #! /bin/bash set -e # exit on error filename=$(basename "$1") extension="${filename##*.}" filename="${filename%.*}" nasm -f elf -F stabs $fi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

--D. Thiebaut 09:18, 7 November 2012 (EST)


#! /bin/bash
set -e      # exit on error
filename=$(basename "$1")
extension="${filename##*.}"
filename="${filename%.*}"
nasm -f elf -F stabs $filename.asm
ld -o $filename -melf_i386 $filename.o