delorie.com/archives/browse.cgi | search |
From: | "Johnny Chan" <jchan AT paclink DOT net> |
To: | <djgpp AT delorie DOT com> |
Subject: | Q: Want to know the starting address and size of my program |
Date: | Mon, 11 Oct 1999 14:52:49 -0700 |
Message-ID: | <000401bf1432$f7656180$ae3d7a86@phoenix.com> |
MIME-Version: | 1.0 |
X-Priority: | 3 (Normal) |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2615.200 |
Importance: | Normal |
In-Reply-To: | <9kX+N6LIij93dGOo5UsHNx=c5=VK@4ax.com> |
Reply-To: | djgpp AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
Question: I would like to know the starting address and the size of my own program. Anyway I can find this piece of information out? Does the format of COFF (format used in DJGPP) includes these pieces of info? If yes, how and where I can find the location of the file header? Also, how can I find out the starting address of the program loader? I assume this loader is located in DOS memory, isn't it? Can my program (resided in extended memory) read this piece of DOS memory? What will happen if my program modify this loader? Does this affects the behavior of my own program's execution? I am developing a system diagnostic program in protected mode for a motherboard. That's why the program has such 'unique' requirement. Please advise. thanks. --jC
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |