Re: Downloaded Bloodshed devcpp, compiled the Hello example but the exe is half a megabyte!?
On Oct 29, 4:49 am, Kai-Uwe Bux <jkherci...@gmx.net> wrote:
Dave -Turner wrote:
mmk thanks .... but what c++ compilers are we allowed to ask questions
about here in comp.lang.c++ ?
None. See the FAQ for a more detailed account on topicality.
There are exceptions. One case where asking about particular
compilers is fine is when two compilers disagree on legality
or meaning of code. Then it is topical to ask which (if any)
compiler is right. In these cases, the information about the
compiler is by and large immaterial. Hint: if you can replace
the names of the compilers by X and Y and there still would be
a meaningful answer, it is probably topical.
More generally, questions about specific compiler options, etc.,
are off topic, but there are often generalities which apply to
many different compilers, which are perfectly acceptable. Thus,
I have no idea what Bloodshed is as a compiler, and couldn't
begin to tell him what options he should be using, even if it
were on topic. But I know that generally, there are two things
that have a very large effect on the size of an executable; by
playing with the amount of debugging information in the
executable, and how much is dynamically linked, I can vary the
size of hello, world from 4.8KB to over 3MB with g++ under
Solaris. The exact sizes on other systems will be different,
but such ranges are typical. Telling him that he has to look
for the options of his compiler which control the amount of
debug information and what is linked statically or dynamically
is certainly on topic, as is telling him that there are a lot
more important considerations than just executable file size
which have to be taken into account.
--
James Kanze (GABI Software) email:james.kanze@gmail.com
Conseils en informatique orient=E9e objet/
Beratung in objektorientierter Datenverarbeitung
9 place S=E9mard, 78210 St.-Cyr-l'=C9cole, France, +33 (0)1 30 23 00 34