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

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!hal.com!olivea!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!news.funet.fi!ousrvr.oulu.fi!phoenix.oulu.fi!scorpion
  2. From: scorpion@phoenix.oulu.fi (Antti Kangas)
  3. Newsgroups: alt.msdos.programmer
  4. Subject: Re: .com and .exe files
  5. Message-ID: <1993Jan26.201921.21687@ousrvr.oulu.fi>
  6. Date: 26 Jan 93 20:19:21 GMT
  7. References: <1993Jan25.231026.6514@news.unomaha.edu>
  8. Sender: news@ousrvr.oulu.fi
  9. Organization: University of Oulu, Finland
  10. Lines: 30
  11. X-Newsreader: TIN [version 1.1 PL6]
  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. :             Thanks,
  21. :                 Frank
  22. Well ,I'm not the expert with this area ,but I know the following things:
  23. First, the .EXE file can be located anywhere in the memory space ,whereas
  24. COM cannot.
  25. Secondly, .EXE files allows four segments: STACK,DATA,CODE and EXTRA
  26. which results in a more modular program.
  27. The disadvantage of .EXE files is that the linker has to add extra code
  28. that the program can be freely located in the memory.
  29. COM can only contain one segment that includes the STACK, DATA and CODE
  30. segments.
  31. --> So, if your program is quite small ,a .COM file is preferable ,because
  32. it's shorter and vice versa.
  33.  
  34. Hope this makes sense and clear the thing up a bit.
  35.  
  36. -- Antti
  37. -------------------------------------------------------------------------------
  38. scorpion@phoenix.oulu.fi  University of Oulu,Department of Computer Engineering
  39.         @zombie.oulu.fi   *****************************************************
  40.   gigolo@otitsun.oulu.fi         ---==< Oulun TietoTeekkarit ry >==---
  41.  
  42.    "The future is not set. There is no fate but what we make for ourselves."
  43.