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 706d220972 cradleasm files deleted as they can be generated 10 mēneši atpakaļ
Assembly f930626230 first part of the work 10 mēneši atpakaļ
Tests f930626230 first part of the work 10 mēneši atpakaļ
.gitignore 5078f6271d *.o files excluded 10 mēneši atpakaļ
cradle f930626230 first part of the work 10 mēneši atpakaļ
cradle.mod f930626230 first part of the work 10 mēneši atpakaļ
cradle0 f930626230 first part of the work 10 mēneši atpakaļ
cradle0.mod f930626230 first part of the work 10 mēneši atpakaļ
cradle1 f930626230 first part of the work 10 mēneši atpakaļ
cradle1.mod f930626230 first part of the work 10 mēneši atpakaļ
cradle2 f930626230 first part of the work 10 mēneši atpakaļ
cradle2.mod f930626230 first part of the work 10 mēneši atpakaļ
cradle3 f930626230 first part of the work 10 mēneši atpakaļ
cradle3.mod f930626230 first part of the work 10 mēneši atpakaļ
cradle4 f930626230 first part of the work 10 mēneši atpakaļ
cradle4.mod f930626230 first part of the work 10 mēneši atpakaļ
cradle5 f930626230 first part of the work 10 mēneši atpakaļ
cradle5.mod f930626230 first part of the work 10 mēneši atpakaļ
cradle6 f930626230 first part of the work 10 mēneši atpakaļ
cradle6.mod 3bdb4407c5 some corrections 10 mēneši atpakaļ
cradle7 f930626230 first part of the work 10 mēneši atpakaļ
cradle7.mod 3bdb4407c5 some corrections 10 mēneši atpakaļ
git_commands.txt 3bdb4407c5 some corrections 10 mēneši atpakaļ