Jump to content
  • Advertisement
Sign in to follow this  
jocasbb3

Code generation (Windows)

This topic is 4811 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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!