Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!ucsbcsl!eiffel!marc From: marc@eiffel.UUCP (Jean-Marc Nerson) Newsgroups: comp.lang.eiffel Subject: Re: Eiffel vs. C++ Summary: Size of Eiffel executables Message-ID: <161@eiffel.UUCP> Date: 8 Jun 89 17:31:56 GMT References: <2689@ssc-vax.UUCP> <150@eiffel.UUCP> <124@tridom.uucp> Organization: Interactive Software Engineering, Santa Barbara CA Lines: 35 >The following "Hello world" program generated an executable on a Sun3 >of 147456 bytes: > >class world >inherit > STD_FILES >feature > >Create is > do > putstring( "Hello world." ); new_line; > end; >end > The same "Hello world" program compiled with Eiffel version 2.2-ALPHA, post-processed and all optimizations turned on, generates an executable of 64671 bytes (53248 bytes stripped) on a Sun386i running O.S 4.0.1 where C libraries are dynamically linked. On a Sun3 O.S 3.5 with non dynamically linked C libraries, the size of the generated code is 73728 bytes (57344 stripped). The same "Hello world" program written in C on a the Sun386i O.S 4.0.1 is 8645 bytes (4408 bytes stripped) and on the Sun3 O.S 3.5 it is 32768 bytes (24576 bytes stripped). Eiffel run-time libraries are currently not dynamically linked (this might be in Eiffel 3.0). Jean-Marc Nerson -- marc@eiffel.com