The GNU Modula-2 version of the "cradle", described in "Lets build a compiler" by Jack
Crenshaw.

The original version uses Pascal as programming language and generated 68000 assembly.

I changed the language to Modula-2, and the generated assembly is AMD64.

The assembly generated can be assembled, linked and executed.

Commands to compile and assemble :

gm2 -fiso -o cradle7 cradle7.mod

nasm -f elf64 -g -F dwarf cradleasm7.asm -o cradleasm7.o

ld cradleasm7.o -o cradleasm7

Eric Streit 461df765e5 correction de MUL et DIV 4 ay önce
LinuxAMD64 461df765e5 correction de MUL et DIV 4 ay önce
.gitignore 5078f6271d *.o files excluded 5 ay önce
git_commands.txt 3bdb4407c5 some corrections 5 ay önce