Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Compilers LCC > Code size of lc...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 978 of 1058
Post > Topic >>

Code size of lcc-win32 vs gcc

by jacob navia <jacob@[EMAIL PROTECTED] > Sep 12, 2007 at 03:14 PM

Hi

Recently there was a discussion in comp.lang.c about lcc-win32

I stated that lcc-win32 generates small executables, an assertion that
was denied by CBFalconer, saying that gcc generates smaller executables

Rob Kendrick proposed that I compile the LUA interpreter of Brazil.
He said thatgcc produces an executable of
25 rjek@[EMAIL PROTECTED]
 $ ls -l lua
-rwxr-xr-x 1 rjek rjek 122368 2007-09-05 11:31 lua

122 368 bytes then.

I have compiled (using dynamic linking obviously for the C library)
an executable of LUA and its size is:
106 016 bytes

C:\lua-5.1.2\src\lcc>pedump /summary lua.exe
lua.exe 106016 bytes, linked Tue Sep 11 20:32:29 2007
Size of code:                   90624
Size of initialized data:       14336
Size of uninitialized data:         0
Size of image:                 114688
Console application. Debug information not present.
Dlls used: lcclibc.dll kernel32.dll crtdll.dll

This is around 16K (more than 10%) smaller than gcc.

jacob
 




 2 Posts in Topic:
Code size of lcc-win32 vs gcc
jacob navia <jacob@[EM  2007-09-12 15:14:07 
Re: Code size of lcc-win32 vs gcc
"Wade Ward" <  2007-09-12 17:30:53 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Jul 6 16:35:57 CDT 2008.