Didn’t Ruby already embedded GCC at some point with similar ideas in mind?
Not embedding them, but mjit generated C and used a C compiler to compile it:
https://www.heroku.com/blog/ruby-mjit/#mjit