home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / alt / msdos / programm / 3249 < prev    next >
Encoding:
Text File  |  1993-01-27  |  1.9 KB  |  51 lines

  1. Newsgroups: alt.msdos.programmer
  2. 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
  3. From: reddyp@ucunix.san.uc.edu (Pardhasaradhi A. Reddy)
  4. Subject: Re: .com and .exe files
  5. Message-ID: <C1Gy97.478@ucunix.san.uc.edu>
  6. Organization: University of Cincinnati
  7. References: <1993Jan25.231026.6514@news.unomaha.edu>
  8. Date: Tue, 26 Jan 1993 16:10:19 GMT
  9. Lines: 40
  10.  
  11. In article <1993Jan25.231026.6514@news.unomaha.edu> fprince@cwis.unomaha.edu (Frank E. Prince) writes:
  12. >Could anyone tell me the difference between .com and .exe files. The
  13. >most I've come up with is that a com file is an "executable memory image"
  14. >but that definition was somewhat out of context, and I don't really
  15. >understand it. I've done some assembly language programming with MASM so
  16. >I do understand instruction sets, stacks, registers etc. Any information
  17. >regarding this is much appreciated.
  18.  
  19.     
  20.     The following are some notable differences between .com and .exe
  21.     files :
  22.  
  23.     .com : All the three segments namely CODE, DATA and STACK point to
  24.     the same segment. In other words, the program can only occupy 64k
  25.     memory. 
  26.  
  27.         A .com file has no header like that of a .exe file. Such a
  28.         program is a exact copy of how the same program would look if 
  29.         loaded into memory.
  30.  
  31.     .exe : Can have any no. of segments for CODE, DATA and STACK. 
  32.  
  33.         It has a header that stores the info about the address of the
  34.         first executable instruction, relocation info. etc. 
  35.  
  36.         The following book gives a detailed description of the
  37.         differences :
  38.  
  39.             IBM Assembler language  -> Peter Abel.
  40.  
  41.             Also , Advanced MSDOS  -> Ray Duncan (the best)
  42.  
  43.     regards,
  44.     Pardha.
  45.  
  46. -- 
  47.  Disclaimer : Views expressed by me are purely mine and have nothing to
  48.  do with those of my employer's or any Organization. Reader's discretion
  49.  is strongly advised.
  50.  
  51.