HMG IDE Compile console application

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
alobamor
Posts: 5
Joined: Sun Nov 30, 2008 5:30 pm

HMG IDE Compile console application

Post 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.
User avatar
millipede
Posts: 10
Joined: Thu May 14, 2009 7:36 am
Location: Mexico DF
Contact:

Re: HMG IDE Compile console application

Post 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. ;)
alobamor
Posts: 5
Joined: Sun Nov 30, 2008 5:30 pm

Re: HMG IDE Compile console application

Post 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
Post Reply