Size of translated programs

new topic     » topic index » view thread      » older message » newer message

Hi Rob, hi all,

I happened to make an interesting discovery.

When I translate one of my programs, using the command
   ecw.exe -bor <prog>.exw

with the Eu2C translator 2.4, and then running
   emake.bat

the resulting exe file has a size of 157184 Bytes.


When I run
   shroud -clear <prog>.exw

before translating the program, the resulting exe file has a size of
only 144896 Bytes (7.8% smaller). Maybe sometimes even more than 7.8%
can be gained? I didn't do any statistical research so far. smile


I'm somewhat surprised, because in e2c.htm#size it reads:
<quote>
The Translator deletes routines that are not used, including
those from the standard Euphoria include files. After deleting unused
routines, it checks again for more routines that have now become unused,
and so on.
<unquote>

According to the docs, shrouding also deletes unused constants, not
"only" unused routines. Does that cause the difference?


In order to automatically translate to smaller executables, I wrote the
following batch file:
   @echo off
   shroud -clear -out %2 %1
   ecw.exe -bor %2

but it does not work. The last command is not executed. Does anyone know
the reason why?

I'd like to suggest for Eu 2.5, that the translator would be as
effective as the shrouder in deleting unused stuff.

Regards,
   Juergen

-- 
 /"\  ASCII ribbon campain  |
 \ /  against HTML in       |  This message has been ROT-13 encrypted
  X   e-mail and news,      |  twice for higher security.
 / \  and unneeded MIME     |

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu