This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Memory optimalisation for .dll-s


Memory optimalisation for .dll-s

Postby goro » Dec 11, 2003 @ 6:32pm

Guys,

I have run into strange linker problem.

I want to create a .dll file, and it seems that the EVC puts all not static functions into the code, even if I do not refer to them.
(if I declare them for static then the linker ignores them)

This is true for functions defined in .c files.
Functions defined in .cpp and not referred are properly ignored.

It is important for me to have the .dll as small as possible.

So I have two ways, one to find, redeclare static/delete all unused functions or to find a linker solution for it. :-)

(I do not want to do the first as some of these functions are part of generic modules and are used in other applications too)

If I link my code to .exe it is ok.

I have read the whole evc documentation.
No luck.

Any hints?

Thanks,
G.
Last edited by goro on Dec 11, 2003 @ 10:13pm, edited 1 time in total.
User avatar
goro
pm Insider
 
Posts: 150
Joined: Jul 2, 2003 @ 1:28am
Location: PDAMILL HQ.


Postby Dan East » Dec 11, 2003 @ 9:24pm

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby goro » Dec 11, 2003 @ 9:34pm

User avatar
goro
pm Insider
 
Posts: 150
Joined: Jul 2, 2003 @ 1:28am
Location: PDAMILL HQ.


Postby Dan East » Dec 11, 2003 @ 9:56pm

What if you func does not access global variables?

Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby goro » Dec 11, 2003 @ 10:06pm

User avatar
goro
pm Insider
 
Posts: 150
Joined: Jul 2, 2003 @ 1:28am
Location: PDAMILL HQ.


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron