Re: to what address my program is loaded?
- From: "randyhyde@xxxxxxxxxxxxx" <spamtrap@xxxxxxxxxx>
- Date: 17 Nov 2005 13:53:46 -0800
spamtrap@xxxxxxxxxx wrote:
> hi
>
> when I write an EXE or COM program and run it through windows, to what
> address in the memory it's been loaded? and if that address is not a
> fixed address, how can I know the address of my program so I can write
> addresses in the code ?
>
> thank you very much
Well, if you are talking about "virtual" addressess, any decent objdump
program can provide this information for you (e.g., Microsoft's
dumpbin). You can also specify the load address as a linker option
(indeed, you can specify the load address of each section in your
program independently).
If you're talking about *physical* addresses, you don't really have
control over that -- that's the OS' job and you generally don't get to
know what physical addresses it uses (depends on the OS, of course).
Cheers,
Randy Hyde
.
- References:
- to what address my program is loaded?
- From: spamtrap
- to what address my program is loaded?
- Prev by Date: to what address my program is loaded?
- Next by Date: Re: Help pmode2realmode
- Previous by thread: to what address my program is loaded?
- Next by thread: Re: to what address my program is loaded?
- Index(es):
Relevant Pages
|