From: Neil C. O. <ice...@ea...> - 2000-12-23 00:10:47
|
306k isn't bad. Plus, if you compressed that EXE (can't remember the tool that does this), it'd be significantly smaller. You have to remember all the work DJGPP and Allegro are doing just to do that little bit of code. All the stuff is statically compiled in rather than dynamically accessed (like through a .DLL or .SO in Windows/Linux). ----- Original Message ----- From: "Eric Botcazou" <ebo...@li...> To: <al...@ca...> Sent: Friday, December 22, 2000 11:57 AM Subject: Re: [AL] Large executable size > With the following code: > > <------------------------------------------------------------> > #include <allegro.h> > > /* to reduce executable size */ > BEGIN_COLOR_DEPTH_LIST > COLOR_DEPTH_8 > END_COLOR_DEPTH_LIST > > BEGIN_GFX_DRIVER_LIST > GFX_DRIVER_VGA > END_GFX_DRIVER_LIST > > BEGIN_DIGI_DRIVER_LIST > END_DIGI_DRIVER_LIST > > BEGIN_MIDI_DRIVER_LIST > END_MIDI_DRIVER_LIST > > BEGIN_JOYSTICK_DRIVER_LIST > END_JOYSTICK_DRIVER_LIST > > > int main( int argc, char *argv[] ) { > allegro_init(); > install_timer(); > install_keyboard(); > install_mouse(); > > set_gfx_mode( GFX_VGA, 320, 200, 0, 0 ); > > readkey(); > } > <--------------------------------------------------------> > > compiled by gcc -s -O2 -o simple.exe simple.c -lalleg, I've got 306 kb. > > -- > Eric Botcazou (ebo...@mu...) > Web Site: http://www.multimania.com/ebotcazou > > |