How can I create an executable .exe PE file manually?

后端 未结 7 1409
谎友^
谎友^ 2021-01-30 22:48

All texts on how to create a compiler stop after explaining lexers and parsers. They don\'t explain how to create the machine code. I want to understand the end-to-end process.<

7条回答
  •  后悔当初
    2021-01-30 23:33

    For Linux, one may read and run the examples from "Programming from the Ground Up" by Jonathan Bartlett:

    http://www.cs.princeton.edu/courses/archive/spr08/cos217/reading/ProgrammingGroundUp-1-0-lettersize.pdf

    Then of course one may prefer to hack Windows programs. But perhaps the former gives a better way to understand what really goes on.

提交回复
热议问题