5 ms·
About time they open sourced it. Funny how it is Python according to github :)
by thecompilr 10y ago
About time they open sourced it. Funny how it is Python according to github :)
- mjcharney 10y agoPython is used to generate C code from tables. Also use python to build/package/test.
- chubot 10y agoWhy is that funny? Python seems like the perfect language for this kind of thing. You can see the logic with minimal noise.
- unwind 10y agoIt's funny since it's not very accurate: the Python is used to generate C code from tables describing instruction encodings (that's my understanding, haven't cloned this and built it). But there is plenty of actual C code in there too, and the resulting "thing" is a C library. Python would not be as suitable as the full implementation language, since C is much more easily accessed from other languages, which is a good property for a library like this.