Alan Shutko wrote:
>
> Can windows executables and dlls be shared and demand paged, or will
> each loaded instance consume extra memory?
Sometimes. If the executable/dll has been built with it's sections aligned
to 4k (page-sized) boundaries, it can be mmap-ed in, which means that the
kernel can share and demand page it. The DLL/Exe also has to have it's
sections loaded in the place it's requested - if it has to be 'rebased'
(moved to a different base address), WINE has to do a fair bit of work,
and scribble all over the code adjusting branches, etc. This makes the
affected pages not-shared.
Coincidentily enough, I've just submitted the patch that allows us to
mmap in the code to the WineHQ tree....it's already in the shipping
WPO2k tree. 8-)
-Gav
--
Gavriel State
Engineering Architect - Linux Development
Corel Corp
[EMAIL PROTECTED]
--
The address in the headers is not the poster's real email address. Do not send
private mail to the poster using your mailer's "reply" feature. CC's of mail
to mailing lists are OK. Problem reports to "[EMAIL PROTECTED]".
The poster's email address is "[EMAIL PROTECTED]".