Re: CE DLL alignment.
- From: ganesan <ganesan.nagrajan@xxxxxxxxx>
- Date: 26 May 2007 11:29:59 -0700
On May 25, 9:20 pm, "Steve Maillet \(eMVP\)"
<nos...@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
The best way to code these DLLs is to put as much as you possibly can into a
single DLL, thus you only take a hit for the unused "slack space" once.
--
Steve Maillet
EmbeddedFusion
smail...@xxxxxxxxxxxxxxxxxx"ganesan" <ganesan.nagra...@xxxxxxxxx> wrote in message
news:1180123512.731288.168470@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On May 25, 9:40 am, Henrik Viklund <henrik.vikl...@xxxxxxxxx> wrote:
Each dll is aligned to a 64kb boundary so a 72kb dll would effectively
use 128kb memory. If you use CE5 or older you probably will find this
(old but still useful) article interesting:
http://msdn2.microsoft.com/en-us/library/ms836325.aspx
Henrik Viklundhttp://www.addlogic.se
On May 25, 12:46 am, ganesan <ganesan.nagra...@xxxxxxxxx> wrote:
Hi
I just want to make sure I am on the right track.
1. If I have a DLL of < 64K, it occupies a DLL space (virtual memory)
of 64 KB. Fine.
What's the dll space occupied by a dll of 70K? Is it 128K? or 72K (4K
boundary) ?
Thanks
Ganesan
Thanks much for the reply.
Sorry, forgot to add my second question while posting the first
question :-)
Hoping for an answer to the following question.
If I created a DLL for ~63.5 K < 64K, I think it will just occupy 64K
of DLL space memory.
Is there anyway possible that while loading this "close to 64K dll",
it actually occupies 128K?
meaning the OS needs space or loads some OS code (basically OS needs
some space for each dll) etc. before each dll is loaded?
Apologies,
Reason to ask this question is,
Can I code DLLs of size 63.5 K or 127.8 K and be sure it will occupy
only 64K and 128K respectively in DLL space and NOT 128K and 192K
because the OS also needed some additional space for dll loads?
We have some memory issue in some Pocket PC's, where, in process
"device.exe" the dll space "growing down" and program memory "growing
up"
clashes, resulting in problems. We do have a memory tool called
"MemoRx.exe" which dumps this clash and we try to adjust our code
(dlls).
But I want to make sure I code the DLLs properly to avoid this issue.
I appreciate any answer is advance!
Thanks very much
Ganesan- Hide quoted text -
- Show quoted text -
Appreciate the reply.
Thats what we are trying to do now. Sometimes its not easy to combine
all of them into just one! :-)
So, doe this still mean
If I created a DLL for ~63.5 K, it really occupies 128K when it's
loaded? . Just tryin to clear that hang over :-)
Thanks
Ganesan
.
- Follow-Ups:
- Re: CE DLL alignment.
- From: Steve Maillet \(eMVP\)
- Re: CE DLL alignment.
- References:
- CE DLL alignment.
- From: ganesan
- Re: CE DLL alignment.
- From: Henrik Viklund
- Re: CE DLL alignment.
- From: ganesan
- Re: CE DLL alignment.
- From: Steve Maillet \(eMVP\)
- CE DLL alignment.
- Prev by Date: Re: NIC fails in RELEASE build CE 5.0
- Next by Date: Re: OALKitlInitRegistry never called???
- Previous by thread: Re: CE DLL alignment.
- Next by thread: Re: CE DLL alignment.
- Index(es):
Relevant Pages
|
Loading