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

  1. Newsgroups: alt.msdos.programmer
  2. Path: sparky!uunet!news.univie.ac.at!scsing.switch.ch!univ-lyon1.fr!ghost.dsi.unimi.it!batcomputer!rpi!usc!howland.reston.ans.net!spool.mu.edu!caen!destroyer!news.iastate.edu!hobbes.physics.uiowa.edu!moe.ksu.ksu.edu!usenet-feed.umr.edu!mcastle
  3. From: mcastle@cs.umr.edu (Michael R Castle)
  4. Subject: Re: .com and .exe files
  5. References: <1993Jan25.231026.6514@news.unomaha.edu> <1993Jan26.201921.21687@ousrvr.oulu.fi> <C1HtvM.Eun@world.std.com>
  6. Date: Wed, 27 Jan 1993 11:43:20 GMT
  7. Nntp-Posting-Host: next9.cs.umr.edu
  8. Organization: University of Missouri - Rolla, Rolla, MO
  9. Sender: cnews@umr.edu (UMR Usenet News Post)
  10. Message-ID: <1993Jan27.114320.14690@umr.edu>
  11. Lines: 26
  12.  
  13. In article <C1HtvM.Eun@world.std.com> mikep@world.std.com (Michael Podanoffsky) writes:
  14. >
  15. >Both .com and .exe files can be loaded anywhere.
  16. >
  17. >A .com file contains no segments whatsoever.  All data, code and stack share
  18. >the same 64k segment.
  19. >
  20. >An .exe file contains segments and can exceed 64k.  Only .exe files are really
  21. >rommable should this ever be needed.  One major side effect is that different
  22. >code segments may be produced.
  23. >
  24. >.com files are an exact byte image of the program in memory without any
  25. >relocation information.  That means all references are near.
  26.  
  27. Question:  Can't com files use more than 64k?  Once the program is going,
  28. you can pretty much do what ever you want with the segment registers, and
  29. request more memory, and access the full 640 k.  I seem to remember a while
  30. back that someone wrote a program (forth interpreter, if I remember 
  31. correctly) that is a .com file, but isn't limited by 64k.
  32.  
  33. mrc
  34. -- 
  35. Mike Castle .-=NEXUS=-.  Life is like a clock:  You can work constantly
  36.   mcastle@cs.umr.edu     and be right all the time, or not work at all
  37. S087891@UMRVMA.UMR.EDU   and be right at least twice a day.  -- mrc
  38.     We are all of us living in the shadow of Manhattan.  -- Watchmen
  39.