Taking Advantage of LIBC to Write Portable Assembly Programs by Rafael Santiago de Souza Netto
This article will introduce the reader to use LIBC in IA-32 Assembly code. The C calling convention will be discussed, giving the readers the necessary knowledge to interface C code into their Assembly programs.
For this article, a sample will be used in a Conway’s Game of Life, fully written in IA-32 Assembly. The discussed code works in FreeBSD, NetBSD, OpenBSD, MINIX, Linux, Solaris and also Windows. The text assumes at least a basic knowledge of Assembly programming by the readers.