delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/04/18:23:54

Message-Id: <199810042222.AAA25784@mail.tol.it>
Reply-To: <@tin.it>
From: "Emiliano Baggiani" <eliobagg AT tin DOT it>
To: <djgpp AT delorie DOT com>
Subject: Re: How do I reduce the program sizes using Allegro?
Date: Mon, 5 Oct 1998 00:15:07 +0100
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1161
MIME-Version: 1.0

On 4 Oct 1998 at 15.50, ? wrote

----------

> I want to reduce the size of the .exe.  I know Allegro includes alot of
> stuff, but I don't need it all.  I don't need the sound library or true
> color.  Can anyone help?
> 

First of all you need an EXE compressor like 'DJP.exe' (check the DJ
archives).
It also supports DJGPP "Dynamically Loaded Module" (DLM) technology.
If your program doesn't need parts of the startup code, it can be made
smaller by defining certain functions with empty bodies.  These functions
are
`__crt0_glob_function', `__crt0_load_environment_file', and
`__crt0_setup_arguments.' By defining empty substitutes for all three of
these, you can make the "Hello" program be 18KB on disk.  These functions
are
documented in the DJGPP libc reference, which see. 
Also see the section 'Reducing your executable size' in allegro.txt, and
then recompile your source code.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019