home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: alt.msdos.programmer
- Path: sparky!uunet!mcsun!Germany.EU.net!news.netmbx.de!mailgzrz.TU-Berlin.DE!math.fu-berlin.de!ira.uka.de!yale.edu!spool.mu.edu!uwm.edu!linac!att!news.cs.indiana.edu!babbage.ece.uc.edu!ucunix.san.uc.edu!reddyp
- From: reddyp@ucunix.san.uc.edu (Pardhasaradhi A. Reddy)
- Subject: Re: .com and .exe files
- Message-ID: <C1Gy97.478@ucunix.san.uc.edu>
- Organization: University of Cincinnati
- References: <1993Jan25.231026.6514@news.unomaha.edu>
- Date: Tue, 26 Jan 1993 16:10:19 GMT
- Lines: 40
-
- In article <1993Jan25.231026.6514@news.unomaha.edu> fprince@cwis.unomaha.edu (Frank E. Prince) writes:
- >Could anyone tell me the difference between .com and .exe files. The
- >most I've come up with is that a com file is an "executable memory image"
- >but that definition was somewhat out of context, and I don't really
- >understand it. I've done some assembly language programming with MASM so
- >I do understand instruction sets, stacks, registers etc. Any information
- >regarding this is much appreciated.
-
-
- The following are some notable differences between .com and .exe
- files :
-
- .com : All the three segments namely CODE, DATA and STACK point to
- the same segment. In other words, the program can only occupy 64k
- memory.
-
- A .com file has no header like that of a .exe file. Such a
- program is a exact copy of how the same program would look if
- loaded into memory.
-
- .exe : Can have any no. of segments for CODE, DATA and STACK.
-
- It has a header that stores the info about the address of the
- first executable instruction, relocation info. etc.
-
- The following book gives a detailed description of the
- differences :
-
- IBM Assembler language -> Peter Abel.
-
- Also , Advanced MSDOS -> Ray Duncan (the best)
-
- regards,
- Pardha.
-
- --
- Disclaimer : Views expressed by me are purely mine and have nothing to
- do with those of my employer's or any Organization. Reader's discretion
- is strongly advised.
-
-