Skip to content
This repository has been archived by the owner on May 12, 2024. It is now read-only.
/ pgu-64 Public archive

x86-64 implementation of Bartlett's "Programming from the Ground Up" (2003).

License

Notifications You must be signed in to change notification settings

kenan-kartal/pgu-64

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

x86-64 Implementation of "Programming from the Ground Up"

This repository contains the x86-64 implementation of the code from Jonathan Bartlett’s "Programming from the Ground Up" (2003).

Original source code is written for x86. I have rewritten it for x86-64, GNU/Linux, following System V ABI calling convention. Files are named as {ch}-{name}[-64].s, where {ch} is the chapter number, {name} is the program name and [-64] suffix is added for 64-bit binaries. The lack of this suffix means the source is written for 32-bit mode.

Make files for building and testing are included.

Build

Build tools should support both 32-bit and 64-bit binaries.

For Debian systems dependencies can be installed with the following command:

$ sudo apt install build-essential gcc-multilib

Then you can build the repository with:

$ make

In order to enable debug symbols, modify the DEBUG_ARGS variable in Makefile.

Test

Programs may be tested with the following command:

$ make test-{name}[-64]

About

x86-64 implementation of Bartlett's "Programming from the Ground Up" (2003).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published