Mail Archives: djgpp/1998/10/05/15:30:07
From: | "Matthew Conte" <spam AT somebody DOT else>
|
Newsgroups: | comp.os.msdos.djgpp
|
References: | <b58357ce DOT 361916e6 AT aol DOT com>
|
Subject: | Re: Allegro for TC++?
|
Lines: | 31
|
X-Newsreader: | Microsoft Outlook Express 4.72.3155.0
|
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3155.0
|
Message-ID: | <o49S1.524$l93.2957484@proxye1.nycap.rr.com>
|
Date: | Mon, 5 Oct 1998 15:27:44 -0400
|
NNTP-Posting-Host: | 24.92.55.44
|
X-Complaints-To: | abuse AT nycap DOT rr DOT com
|
X-Trace: | proxye1.nycap.rr.com 907615636 24.92.55.44 (Mon, 05 Oct 1998 15:27:16 EDT)
|
NNTP-Posting-Date: | Mon, 05 Oct 1998 15:27:16 EDT
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
DoctorXV AT aol DOT com wrote in message ...
>Is there a grpahics library like Allegro for Turbo C++? I have DJGPP but I
>hate it's outrageous file output size of 250k for just "Hello, World!" if I
am
>doing it in C++. But in TC++ the file is only 5kb. Anyway...is there any
>graphics library for Turbo C++?
[This is discussed in the FAQ, by the way.]
Allegro is djgpp (and now win32 and possibly linux) specific. You will only
get a file size of ~250kB if you do not strip the debugging symbols from the
executable using the "-s" switch in the gcc/g++ command line, or by issuing
a "strip <program>.exe" after compilation.
Allegro is a big library and it adds a lot of bulk even if you don't use
most of its functionality. djgpp also needs a good amount of code to
handle 32-bit protected mode, but this space is fixed, i.e. as your programs
get bigger, djgpp's startup code stays the same size.
It is possible to make small djgpp executables. I am working on a
full-featured Nintendo Entertainment System emulator in C, which has full
sound via the SEAL library and a custom GUI, and the executable is only
52kB. I strip the executable and then compress it using the fabulous UPX
transparent .EXE compressor, the successor to DJP. I saved a lot of bloat
by rewriting all of my graphics routines rather than using Allegro, of
course...
Later,
Matt.
- Raw text -