Finding the Data Segment from an .EXE

charles spell cs00chs at unccvax.uncc.edu
Mon Oct 8 09:43:44 AEST 1990


I am trying to find out where (offset) in a .EXE the start of the
(initialized) data segment is from a compiled TurboC program. I can get
the Code Segment from the word at 16h in the .EXE header, but am not sure
of an easy way to find the data segment that follows the code...

any ideas?

Thanx in advance.

-- 
 .--------------------------.  ...  |On the border of your mind lies a place
 |uunet!mcnc!unccvax!cs00chs|  (")  |where dreams and reality are one...I will 
 `--------------------------'-w-U-w-|take you there, for I am the subject...
 \%\%\%\%\%\%\%\%\%\%\%\%\%\%\%\%\%\|the subject of your imagination. -Aldo Nova



More information about the Comp.lang.c mailing list