CS 412/413
Introduction to Compilers
Spring 2002

Supporting Material for Code Generation Assignment


Library functions

Example programs

Calling convention

Pentium Instruction Set Architecture

GNU Assembler

Assembling and linking commands

Under the cygwin environment, the assembling and linking commands for an assembly file "file.s" are:

as -o file.o file.s
ld -o file.exe file.o /lib/crt0.o libic.a -lcygwin -lkernel32

The library file libic.a is a collection of .o files bundled together, containing the code for the standard modules io and conv that are defined in the language specification, along with run-time support for garbage collection.