Thread: Compiler Question

  1. #1
    Registered User
    Join Date
    May 2002
    Posts
    132

    Compiler Question

    Hi,

    This is not a compiler specific question, rather it has do with the actual production of .exe files. I'm wondering what exactly is the format of an executable file? Or is there a website that has details about things like this? I'm wondering because I want to create a program that determines the differences between programs (should be same program but different versions) which then outputs these changes into a .exe file that could be run and the needed changes would be applied to the file(s) as necessary based on those changes. I just need to know how to output the .exe file for the end result.

    Thanks

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  3. #3
    .
    Join Date
    Nov 2003
    Posts
    307
    COFF, ELF - these are some EXE formats. The PE information modules (windows) get all of the information you'd need to for windows exe's, dll's, ocx, vbx, etc files.

    It's different for different platforms.

    You need to go to www.wotsit.org to find white papers and other information on various image file formats.

    Older OS's like VAX/VMS had actual patch utilities that did just what you are looking to do. Gentoo has emerge which also does something like that, but is more of a rebuild.

  4. #4
    Registered User
    Join Date
    May 2002
    Posts
    132
    Well I checked out wotsit.org and it didn't give me all the information I need. I've read the docs on a few different types of executables, however, it didn't give me anything to go by. Just what was needed. I don't understand all the information in them.
    Like what does it mean by pages, how do you figure this out? Or how about paragraphs and how do you figure that out?

  5. #5
    Registered User
    Join Date
    Dec 2003
    Posts
    50

    PE Tutorial

    There is a PE Tutorial here:
    http://win32asm.cjb.net/

    It covers:

    Although written for assembly programmers, the concepts and programming techniques are, IMHO well explained. :-)

    Best Regards,
    Yeoh
    --
    http://www.yeohhs.com

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Question about compiler copying objects
    By Sharke in forum C++ Programming
    Replies: 3
    Last Post: 06-15-2009, 08:25 AM
  2. gcc compiler question
    By s_ny33 in forum C Programming
    Replies: 6
    Last Post: 10-18-2005, 07:13 AM
  3. question about bool
    By ssharish2005 in forum C Programming
    Replies: 7
    Last Post: 10-17-2005, 08:18 AM
  4. C/C++ Compiler Question
    By Unregistered in forum C++ Programming
    Replies: 11
    Last Post: 07-09-2002, 02:09 AM
  5. Question: Which Compiler????
    By MaBo in forum C Programming
    Replies: 5
    Last Post: 06-04-2002, 11:57 AM