r/ProgrammingLanguages • u/Key_River7180 Nain. • 23d ago
Help transpilation - Bootstrap compiler
So, I am making a compiler for my language, Nain, in CHICKEN Scheme. Should I output QBE IR or code for C or another language? This is a bootstrap compiler, I will use it only to test new language features and to compile the self hosting compiler so yeah.
1
Upvotes
View all comments
1
u/gio_vs 20d ago
Eu escolheria C. Como você só vai usar esse compilador para testar recursos da linguagem e compilar o compilador definitivo, acho que não vale a pena complicar muito. Gerar C é mais simples, facilita a depuração e ainda tem como aproveitar a infraestrutura de compilação C que você provavelmente já tem, considerando o CHICKEN. Também é mais portátil que QBE.