On Tue, Jul 25, 2006 at 12:11:45PM +0000, Angus Leeming wrote: > Bo Peng <[EMAIL PROTECTED]> writes: > // The original author used some tricks to reduce executable > // size. They are removed to make the program compatible to > // mingw/gcc. > > Rather than comment these #pragmas out, why not protect them with a #ifdef > MSVC block? > > Angus > > // do not link to default libraries > //#pragma comment(linker,"/NODEFAULTLIB") > // unite code and data section (make the program smaller) > //#pragma comment(linker,"/MERGE:.rdata=.text") > // resolve record in section of code (?) > //#pragma comment(linker,"/SECTION:.text,EWR") > // the new entry point (why?) > //#pragma comment(linker,"/ENTRY:NewWinMain")
This would make sense only if msvc produces a very big executable. After stripping it, the executable produced by gcc is about 5Kb and I would be surprised if msvc does much worse than that. Rather, I would simply delete those obscure #pragma's... -- Enrico