Jan Nieuwenhuizen writes: > Arne Babenhauserheide writes: >> How do you compile the interpreter? > > The current interpeter I consider to be a prototype in C; I use gcc. > However, HACKING mentions two ways forward > > ** Move mes.c into hex? > One idea is to use OrianJ's amazing self-hosting > [[https://github.com/oriansj/stage0][stage0]] hex assembler and > minimal bootstrap binaries and rewrite the mes.c core to directly > bootstrap into Scheme.
This seems to be the strongest option, but also very expensive. And only useful if it becomes a step on the way to compile GCC (the goal of stage0). > ** Rewrite mes.c and generate hex? > Another idea (thanks Rutger!) is to rewrite the mes.c core in a > C/Assembly variant and have mescc produce the simple, annotated > bootstrap binary. > > Possibly you have an even better idea? I am choosing to explore the > latter first: work on the compiler backend and write the interpreter in > its Assembly/C-like s-expressions. I think the C/Assembly variant sounds better — maybe written in simple enough style to be compiled by stage0 before that can compile GCC. Best wishes, Arne -- Unpolitisch sein heißt politisch sein ohne es zu merken
signature.asc
Description: PGP signature