Search

Huge Executable size when creating Static linked MFC applications by drkanand

Closed
as Deferred Help for as Deferred

2
0
Sign in
to vote
Type: Bug
ID: 597395
Opened: 9/13/2010 1:21:21 AM
Access Restriction: Public
0
Workaround(s)
0
User(s) can reproduce this bug
When compiling MFC statically linked applications, the size of the target exe is huge (atleast 10 times). This has been observed for every win32 application that is created.

I have to go back to VS 6 or VS 2008 to get a smaller executable. This is a pain as my customer prefers small executables.

Details (expand)

Visual Studio/Silverlight/Tooling version

Visual Studio 2010

What category (if any) best represents this feedback?

Performance

Steps to reproduce

1) Create a sample win32 application (Hello World).

2) Link MFC using Static libraries

3) Compile in Release mode, the executable size is 1.8 MB. It used to be around 50KB or in VS 6.

Product Language

English

Operating System

Windows XP

Operating System Language

English

Actual results

Compiled application size is 1.8 MB

Expected results

Somewhere around 50-100 KB
File Attachments
0 attachments
Sign in to post a comment.
Posted by Microsoft on 9/15/2010 at 4:27 PM
Hello,

Thanks for the report. This is a known problem (caused by a combination of features added for Visual Studio 2010) and we are investigating it for the next release of Visual Studio.

Pat Brenner
Visual C++ Libraries Development
Posted by Microsoft on 9/13/2010 at 2:26 AM
Thanks for your feedback. We are routing this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Sign in to post a workaround.