Mail Archives: djgpp/2000/08/30/20:15:20
On Wed, 30 Aug 2000 22:14:30 GMT, eglebbk AT dds DOT nl (Evert Glebbeek)
wrote:
>From: Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p>
>>"JS" <jmszczap82 AT adelphia DOT net> wrote:
>>
>>> 1. What command line parameters can I use to reduce the size of my exe.
>>>files. ALSO, what do these parameters mean and do?
>>
>>gcc -s foo.c -lalleg -o foo.exe
>>-s : remove debugging symbols
>>
>>upx -9 foo.exe
>>upx : pack an existing DJGPP exe
>> http://upx.tsx.org/
>
>Is there a qualitative difference between upx and djp?
UPX springs from the djp and lzop projects. UPX uses a newer
(smaller/faster?) compression library. UPX also supports more exe
formats (DOS MZ, DJGPP COFF, Win32 PE, Watcom LE, Linux ELF...)
>>> 2. Is it ABSOLUTELY necessary to call 'detect_digi_driver()' AND
>>>'detect_midi_driver()' before calling 'install_sound()'?
>>
>>No. In fact I don't recommend it.
>
>Why not?
If you call detect_*_driver() first, you won't hear MIDI if there
is no digi available, and you won't hear digi if there is no MIDI
available. If you skip detect_*_driver() and just install_sound(),
you can still hear one or the other. I learned this the hard way
when a new Linux kernel I compiled lacked support for SB FM MIDI,
causing Allegro not to play waves. I removed the detect_*() calls
from the program and it worked fine.
--
MS (n) 1. A debilitating and surprisingly widespread affliction
that renders the sufferer barely able to perform the simplest
task. 2. A disease, multiple sclerosis (see).
This is McAfee VirusScan. Add these two lines to your signature to
prevent the spread of signature viruses. http://www.mcafee.com/
- Raw text -