Re: C Compilers
- Posted by ghaberek (admin) Mar 01, 2023
- 748 views
axtens_bruce said...
Something else to consider GCC Tiny which I just saw on Reddit's ProgrammingLanguages
That's an interesting project! Good to see a how ground-up implementation comes together. You don't see that very often.
axtens_bruce said...
Hang on, isn't this what we're doing anyway??
That project is creating a custom front end for GCC which binds itself directly on top of the GCC back end then ingests its "tiny" code and spits out executable code. The Euphoria translator emits C code and then calls vanilla GCC to compile it (or emits a Makefile and we run that to call GCC). But yes one way or another, I think it would be worthwhile to make the translator compile in memory (however that happens) and output an executable without all the intermediate C files.
-Greg