Advertisement Jump to content
Sign in to follow this  
jocasbb3

Code generation (Windows)

This topic is 4880 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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!!

Share this post


Link to post
Share on other sites
Advertisement
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!