Re: CE DLL alignment.
- From: ganesan <ganesan.nagrajan@xxxxxxxxx>
- Date: 25 May 2007 13:05:12 -0700
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
.
- 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
- CE DLL alignment.
- Prev by Date: OALKitlInitRegistry never called???
- Next by Date: Re: NIC fails in RELEASE build CE 5.0
- Previous by thread: Re: CE DLL alignment.
- Next by thread: Re: CE DLL alignment.
- Index(es):
Relevant Pages
|