home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / msdos / programm / 12488 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.4 KB

  1. Path: sparky!uunet!ukma!cs.widener.edu!dsinc!ub!exucom.com!cyberman
  2. From: cyberman@exucom.com (Stephen R. Phillips)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Re: .com and .exe files
  5. Message-ID: <1993Jan28.040654.12328@exucom.com>
  6. Date: 28 Jan 93 04:06:54 GMT
  7. References: <1993Jan25.231026.6514@news.unomaha.edu>
  8. Organization: ExuCom Multimedia Inc.
  9. Lines: 23
  10. X-Newsreader: TIN [version 1.1 PL8]
  11.  
  12.  
  13. Frank E. Prince (fprince@cwis.unomaha.edu) wrote:
  14. : Could anyone tell me the difference between .com and .exe files. The
  15. : most I've come up with is that a com file is an "executable memory image"
  16. : but that definition was somewhat out of context, and I don't really
  17. : understand it. I've done some assembly language programming with MASM so
  18. : I do understand instruction sets, stacks, registers etc. Any information
  19. : regarding this is much appreciated.
  20.  
  21.     Quit simple.  EXE file upon loading have far pointer
  22. references within them altered at program start up since the i86 code
  23. cannot have RELATIVE far calls and jumps.  SO in order to specify the
  24. proper address a table of pointer is loaded.  Each point contains the
  25. address of a "relocatable" item.  IE the far calls and pointers.  
  26.  
  27.     A com file is much faster in loading because it uses the Tiny
  28. memory model and therefore there is no need for the screwy relcoation
  29. method EXE's have to use (if they want to address > 64k segments)
  30.  
  31. Cyberman
  32. -- 
  33. This is my sig file!
  34. Read rec.games.programer!
  35.