Re: to what address my program is loaded?




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

.



Relevant Pages

  • Re: Performance extreme deterioration
    ... in the current version/run file of Windows and look important, ... Pentium M 1.4 GHz processor and 512 MB of memory. ... If I click on my system tray, there are 24 icons of programs ... programs that automatically load into memory from doing so. ...
    (microsoft.public.windowsxp.general)
  • Re: Maximum Executable Size?
    ... MS reserve the top 2Gb of this address space for Windows ... When you run you application it is going to want to load DLLs. ... DLLs will also load into that 2Gb of memory. ...
    (borland.public.delphi.non-technical)
  • Re: can the loading of a large number of records go as quick as in DOS
    ... There is a flag in MSHflexGrid, that you can set to false when ... you load the data, and set it to tru when you are done. ... The diference between the DOS-and Windows program is probarbly caused ... these records all the time in memory. ...
    (microsoft.public.vb.general.discussion)
  • Re: Q: Why PictureBox takes SO MUCH memory ??
    ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... I have a problem with memory when trying to load more pictures ..... ... Now the problem occurs when I try to load more pictures... ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: Registry Value for Physical Memory
    ... of displayed system memory? ... You can specify the amount of memory used by Windows in the BOOT.INI ...
    (microsoft.public.win2000.hardware)