I am currently writing a programming language in C/C++ as an exercise (but mostly for fun). At the moment it compiles into a list of commands that are then executed (kind of like a low-level API). Its working fantastically, however, I think it would be more exciting if instead of having a interpreter executable, having the language actually compile into a .exe file. I don’t know if it is possible or how challenging this might be. I could not find any resources to help me with this. – Thanks in advance.
I am currently writing a programming language in C/C++ as an exercise (but mostly
Share
You could consider writing a frontend for LLVM (tutorial) or GCC (article from linux journal) – if thats still fun for you is a different question.