Mail Archives: djgpp/1998/07/10/15:05:13
Endlisnis <s257m AT unb DOT ca> wrote:
> I am just wondering what the expected size ratio is between a
> program compiled under a 16-bit compiler (like BC++3.1) and DJGPP. I
> remember reading a while ago somebody saying that only 18k was linked into
> every DJGPP file. (I may have the wrong number) I tried compiling:
>
> void main(){}
>
> And it came out as 67k.
Try using -s to strip the debug symbols.
> I tried using <fstream.h>
> #include<fstream.h>
>
> void main()
> {
> fstream a("test", ios::out|ios::binary);
> a << "Hello";
> }
>
> And it ended up 202k. From what I remember of BC++v3.1 those
> programs would have compiled to 5k & 29k.
Again try -s. Additionally I must admit that the C++ libraries are
bloated.
> Should I expect 10:1 ratios to
> take care of Protected mode issues?
No in large projects. Small programs aren't good for such a
comparisson. Take a look to the FAQ, Eli spend a lot of time
explaining this topics!
SET
------------------------------------ 0 --------------------------------
Visit my home page: http://set-soft.home.ml.org/
or
http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org
ICQ: 2951574
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013
- Raw text -