Skip to content

Latest commit

 

History

History
26 lines (14 loc) · 728 Bytes

File metadata and controls

26 lines (14 loc) · 728 Bytes

Assembly-GroundUp

This is my progress of the book Programming from the Ground Up by Jonathan Bartlett

The code is written in x32, to compile and run on a x64 machine the use the fallowing commands Note: that the argument --gstabs+ is so we can later debug with gdb

as --gstabs+ --32 -o filename.o file.s

ld -m elf_i386 -o filename filename.o

I also included a simple bash script that compiles the file with the --gstabs option for debugging

compile.sh takes two arguments the file name with no extension, and the folder location

./compile.sh filename location/

Example for chapter 4

as --gstabs+ --32 -o power.o power.s

ld -m elf_i386 -o power power.o

Compiling with the script

./compile.sh power Chapter4/