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 7f3d22e1c0 asm files deleted as they can be generated 5 months ago
Assembly f930626230 first part of the work 5 months ago
Tests f930626230 first part of the work 5 months ago
.gitignore 5078f6271d *.o files excluded 5 months ago
cradle f930626230 first part of the work 5 months ago
cradle.mod f930626230 first part of the work 5 months ago
cradle0 f930626230 first part of the work 5 months ago
cradle0.mod f930626230 first part of the work 5 months ago
cradle1 f930626230 first part of the work 5 months ago
cradle1.mod f930626230 first part of the work 5 months ago
cradle2 f930626230 first part of the work 5 months ago
cradle2.mod f930626230 first part of the work 5 months ago
cradle3 f930626230 first part of the work 5 months ago
cradle3.mod f930626230 first part of the work 5 months ago
cradle4 f930626230 first part of the work 5 months ago
cradle4.mod f930626230 first part of the work 5 months ago
cradle5 f930626230 first part of the work 5 months ago
cradle5.mod f930626230 first part of the work 5 months ago
cradle6 f930626230 first part of the work 5 months ago
cradle6.mod 3bdb4407c5 some corrections 5 months ago
cradle7 f930626230 first part of the work 5 months ago
cradle7.mod 3bdb4407c5 some corrections 5 months ago
cradleasm1 f930626230 first part of the work 5 months ago
cradleasm2 f930626230 first part of the work 5 months ago
cradleasm2-1 f930626230 first part of the work 5 months ago
cradleasm3 f930626230 first part of the work 5 months ago
cradleasm5 f930626230 first part of the work 5 months ago
cradleasm6 f930626230 first part of the work 5 months ago
git_commands.txt 3bdb4407c5 some corrections 5 months ago