PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Portable Executable mapping

Heya,

according to the "great" microsoft debugger my portable executable image
is mapped at 0x36010000 but the .text section for example seems also
to be mapped at its virtual address of 0x11000. can anybody tell me
the reason for that?


regards,

sicker
Not 100% sure about your question, so I'll answer what I think you're asking (if I'm not, rephrase the question :P).

There are 32 "slots" for processes in the address space in the operating system. Slot 0 is allocated to the currently running process (i.e. the running process is mapped there, run for a bit, then mapped out and another is mapped in to run).

So, an executing application exists at both a slot (1 to 31) and at slot 0. That's why your application appears at two virtual memory locations.
cheers mate :)
joshbu [MSFT] · 16 Apr 2004, 06:52 UTC
Small off-by-one: there are 33 slots. Slot 0 for whatever is running, and 32 more mappings for each possible process.

Otherwise, dead on.
Oh look, PocketMatrix has a man on the inside(microsoft that is).

Welcome to the forums.