Page 1 of 1

HMG IDE Compile console application

Posted: Wed May 20, 2009 10:48 pm
by alobamor
Hi,

I'm using HMG Ide to compile a command line application, everything is working ok, but the file is more than 1MB size, even if there is one line of code. I think the problem is that the IDE is including uneded libraries, like the ones for the graphical interface.
Is there a way to select the libraries I want?

I've tried to compile the application by hand, but it has too many files and it is a lot easier using the IDE.

Thanks in advance.

Re: HMG IDE Compile console application

Posted: Thu May 21, 2009 3:43 am
by millipede
Hola:

Puedes comprimir el programa con upx, por ejemplo un programa de 1192K queda de 578K.
Se ejecuta igual de rapido.

Usar el comando: UPX -o nuevo.exe normal.exe

el parametro -o nuevo.exe indica como se llama el programa comprimido,
el parametro normal.exe indica el nombre del programa normal.

El compresor upx se puede descargar de http://upx.sourceforge.net/ en el parrafo Download

saludos. ;)

Re: HMG IDE Compile console application

Posted: Thu May 21, 2009 5:41 pm
by alobamor
Gracias por la sugerencia, lo probaré.

De todos modos me gustaria averiguar como quitar librerias, ya que al tener muchas librerias que no uso tarda demasiado tiempo en cargar, como 2 segundos o así.

Un saludo