Compilation strategy

Walter Bright newshound2 at digitalmars.com
Mon Dec 17 01:29:26 PST 2012


On 12/17/2012 1:15 AM, Paulo Pinto wrote:
> http://www.hopperapp.com/
>
> I really like the way it generates pseudo-code and basic block graphs out of
> instruction sequences.

I looked at their examples. Sorry, that's just step one of reverse engineering 
an object file. It's a loooooong way from turning it into source code.

For example, consider an optimizer that puts variables int x, class c, and 
pointer p all in register EBX. Figure that one out programmatically. Or the 
result of a CTFE calculation. Or a template after it's been expanded and inlined.


More information about the Digitalmars-d mailing list