Skip to main content
GameDev.net gamedev.net
🔒 Locked

Code generation (Windows)

Started by jocasbb3 Sep 13, 2005 at 4:09 AM 1 replies 500+ views
Original Post
jocasbb3
jocasbb3
Hello everybody, I'm writing a simple compiler system just to learn. My question is: how can I generate a exe in PE format? Are there any tools? Or I just have to look at the spec of the pe format and code a function to write a pe file manually? Every header, section, etc. Thanks in advance!!
etothex
etothex
Are you trying to write a compiler, assembler, or linker? Ideally, you would only be writing one at a time :)

If you're writing a compiler, you should output windows assembly code and let the linker and assembler fuss over the format of the PE.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.