Mail Archives: djgpp/1998/01/05/15:18:07
In article <34B07279 DOT 1B31 AT nic DOT smsu DOT edu>, Tony O'Bryan
<aho450s AT nic DOT smsu DOT edu> writes
>> Which is more of a C++ version as taught in the books. It compiles
>> signifigantly larger (I didn't strip it though).
>
>Using the iostreams links in another library (libgpp.a) which naturally
>will increase the size of the final program. Libraries aside, the code
>produced by a C++ compiler shouldn't be much larger (if at all) than the
>same code produced by a C compiler, though optimization options will
>have an effect.
Its partly because the iostreams library has so many internal linkages
that you get all of it linked if you use any of it. Its a one-off cost,
annoying but it also happened with the commercial compilers I've used.
If its a big problem use C io functions instead.
---
Paul Shirley: my email address is 'obvious'ly anti-spammed
- Raw text -