Hi,
my friends and i have been confused by this problem.
On a veriety of systems we have tested compiling a simple hello word
applicaation to check optimisation of C++ in 2003 VS.NET.
However on one of the machines, the best we can get is 61k under a blank
win32 console app.
We were trying to wrk out what we should tweak as we have tried excluding
Libraries, and a few other tweaks as suggested in forums.
Your help is much appreciated
Thankyou
Vicky
Brian Muth - 30 Jan 2006 22:04 GMT
Simply ensure that your code is not calling anything in the VC runtime
library. Unfortunately, I don't think this is possible from a console
application. Regardless, you can confirm this by not linking to any of the
standard libraries (see /NODEFAULTLIBRARY). Stick to Win32 API calls only.
See the notes section in
http://msdn2.microsoft.com/en-us/library/h02f9ttw.aspx
Brian
Carl Daniel [VC++ MVP] - 31 Jan 2006 01:27 GMT
> Hi,
>
[quoted text clipped - 6 lines]
> We were trying to wrk out what we should tweak as we have tried excluding
> Libraries, and a few other tweaks as suggested in forums.
Are you sure you weren't looking at a Debug build in the 61K case? How are
you building the project - from a Visual Studio project (.vcproj file) or
something else?
-cd