home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / msdos / programm / 8145 < prev    next >
Encoding:
Text File  |  1992-07-29  |  1.7 KB  |  48 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!cs.utexas.edu!torn!news.ccs.queensu.ca!dmurdoch
  3. From: dmurdoch@QueensU.CA (Duncan Murdoch)
  4. Subject: Re: Easy Way To Determine STACK/HEAP Allocations In An .EXE?
  5. Message-ID: <Bs5J58.MvI@knot.ccs.queensu.ca>
  6. Sender: news@knot.ccs.queensu.ca (Netnews control)
  7. Organization: Queen's University, Kingston, Canada
  8. References: <-=nm_r_.westes@netcom.com> <Bs5HMv.MEE@knot.ccs.queensu.ca>
  9. Date: Wed, 29 Jul 1992 13:07:55 GMT
  10. Lines: 36
  11.  
  12. In article <Bs5HMv.MEE@knot.ccs.queensu.ca> dmurdoch@QueensU.CA (Duncan Murdoch) writes:
  13. >In article <-=nm_r_.westes@netcom.com> westes@netcom.com (Will Estes) writes:
  14. >>Is there some easy way to determine the local stack and heap allocations
  15. >>in an .EXE file?  To my surprise, the DOS EXEHDR utility seems to let
  16. >>you change these parameters in an .EXE, but it doesn't seem to give a
  17. >>way to determine what those values are.  
  18.  
  19. >Borland languages come with a program called TDUMP that'll show you the
  20. >.EXE header.  
  21.  
  22. You don't need to use TDUMP - EXEHDR will display the current header if
  23. you give it no options.  For example, 
  24.  
  25. C:\TEST exehdr test
  26.  
  27. Microsoft (R) EXE File Header Utility  Version 2.01.003
  28. Copyright (C) Microsoft Corp 1985-1990.  All rights reserved.
  29.  
  30. .EXE size (bytes)         de2
  31. Magic number:             5a4d
  32. Bytes on last page:       0190
  33. Pages in file:            0004
  34. Relocations:              0007
  35. Paragraphs in header:     0004
  36. Extra paragraphs needed:  042c
  37. Extra paragraphs wanted:  a42c
  38. Initial stack location:   00a1:4000
  39. Word checksum:            0000
  40. Entry point:              0000:0000
  41. Relocation table address: 001c
  42. Memory needed:            19K
  43.  
  44.  
  45. Duncan Murdoch
  46. dmurdoch@mast.queensu.ca
  47.  
  48.