[webkit-dev] How to reduce the size of my dll

cui.yuan2 at zte.com.cn cui.yuan2 at zte.com.cn
Tue Feb 10 17:05:42 PST 2009

Thank you for your reply ,and alse Darren VanBuren. I have no right to 
sent mails to any addresses except webkit-dev at lists.webkit.org In office. 
So... I'm sorry

I'm sure I did a release build. All the files,including JavascriptCore and 
webcore  are added to my project. I even do the optimization as much as 
possible.So I think I should do some compiler and linker settings(but not 

ps:I have checked the PE header, and the .rdata section accounts for 95%. 

My compiler and Linker command line is as follows:

/Od /I /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_USRDLL" /D 
"UNICODE" /Gm /EHsc /RTC1 /MDd /Zc:wchar_t- /Fo"Debug\\" 
/Fd"Debug\vc80.pdb" /W0 /nologo /c /Wp64 /ZI /TP /errorReport:prompt

/OUT:"Debug\WebKit.dll" /INCREMENTAL /NOLOGO /LIBPATH:"../NetStack/Debug" 
/DLL /MANIFEST /MANIFESTFILE:"Debug\WebKit.dll.intermediate.manifest" 
/NODEFAULTLIB:"msvcrtd.lib" /NODEFAULTLIB:"mfcs80ud.lib" /DEBUG 
/PDB:"e:\WebBrowser\WebKit\Debug\WebKit.pdb" /SUBSYSTEM:WINDOWS 
/MACHINE:X86 /ERRORREPORT:PROMPT mfcs80ud.lib msvcrtd.lib NetStack.lib

Adam Roben <aroben at apple.com> 
2009-02-10 22:26

cui.yuan2 at zte.com.cn
webkit-dev at lists.webkit.org
Re: [webkit-dev] How to reduce the size of my dll

On Feb 10, 2009, at 12:05 AM, cui.yuan2 at zte.com.cn wrote:

Hi all: 

Currently I'm trying to build webkit in my own VS2005 project. (Makeing a 
new project ,then adding the source file to it and doing  some necessary 
changes) The size of webkit.dll I got is 107m,and seems too large. I 
observe the same dll in safari for windows is less than 5m. So, I want to 
know how I can reduce the size of my dll file, need some settings or 
change the platform? 

Perhaps you did a Debug build? Release build DLLs should be smaller than 
Debug build DLLs.


ZTE Information Security Notice: The information contained in this mail is solely property of the sender's organization. This mail communication is confidential. Recipients named above are obligated to maintain secrecy and are not permitted to disclose the contents of this communication to others.
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. Any views expressed in this message are those of the individual sender.
This message has been scanned for viruses and Spam by ZTE Anti-Spam system.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20090211/8e3b847b/attachment.html>

More information about the webkit-dev mailing list