Linked by Thom Holwerda on Tue 8th Jan 2013 23:27 UTC
Thread beginning with comment 548211
To view parent comment, click here.
To read all comments associated with this story, please click here.
To view parent comment, click here.
To read all comments associated with this story, please click here.
zlynx,
"I read about modules for LLVM to do this a while back...Still, it'd be a good place to start."
+1!
Sadly I cannot actually afford to take on the project as an unpaid hobby, but this is the kind of CS stuff I had ambitions of doing when I entered the field. Screw you PHP \:(
Edit: what the heck is the emoticon for anger?
Edited 2013-01-10 20:45 UTC




Member since:
2005-07-20
I read about modules for LLVM to do this a while back.
The idea is to use LLVM, read the x86 machine code and "compile" it into the LLVM intermediate representation, then compile that into ARM or PPC or whatever.
Last I heard it worked pretty well on code compiled with GCC or LLVM, much less well on custom machine code, and it had some trouble determining the real byte sizes of some variables.
Still, it'd be a good place to start.