Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Creating a Minimal Executable

In these examples we will explore a minimal executable created in various ways.

In ex001a, we write a C program that loops infinitely. This is compiled (and linked) using a C compiler.

In ex001b, we write the same functionality into a minimal assembly source file. This is assembled using NASM and linked using a linker (ld).

In ex001c, we eschew the linker and generate the minimal ELF executable binary directly in NASM.