Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 1.59 KB

File metadata and controls

20 lines (15 loc) · 1.59 KB

Code examples

These are the sample programs that accompany the book. Each directory is a standalone program with its own Makefile and README.md.

Example Description Chapter
hello The basic "Hello, World!" program Part 1. Introduction
sum Sum of two integer numbers Part 2. The x86_64 concepts
stack Sum of two command line arguments Part 3. Journey through the stack
strings Reverse a given input string Part 4. Data manipulation
float Dot product of two vectors of doubles Part 6. Floating-point arithmetic
casm Interaction between assembly and C Part 7. Assembly interaction with high-level programming languages

To build an example, go to its directory and run the following command:

make

The tools you need to build and run the examples are listed in the Requirements section.