Re: Compile
- Posted by ghaberek (admin) Jan 28, 2015
- 1566 views
larger file than using bind..
This happens, unfortunately. You can use UPX to compress your exectuables.
An additional note on this: The shrouder [and binder] will remove any routines and variables that your program doesn't use. The translator, conversely, will not remove any unused routines. So if you are translating with a large library (e.g. Win32Lib) then you will see a much larger executable.
If you use the -nobuild and -makefile options, you can edit your make file and change the -O2 (Full optimization) option to -Os (Optimize space usage) on the CFLAGS line. Using this option, you can probably save about 5-10%, which will carry through to the UPX-compressed executable as well.
CFLAGS = -DEWINDOWS -fomit-frame-pointer -c -w -fsigned-char -Os -m32 -IC:/Euphoria -ffast-math
Also, when compiling with MinGW or TDM-GCC, you may notice a console window show up on compiled Windows apps. You can add the -mwindows option to your LFLAGS line to avoid this.
LFLAGS = C:/Euphoria/bin/eu.a -m32 -mwindows
-Greg