Mail Archives: djgpp/2000/11/11/18:45:19
Julian Hsiao <madoka AT novastar DOT com> writes:
> Hi,
>
> I'm currently taking a programming class and being short on budget, uses
> DJGPP and Borland's free compiler and XEmacs for assignments. The
> reason I uses both compilers is because I try to avoid using certain
> constructs that only GCC or Borland provides (well, I guess the only way
> to completely avoid that is to code while reading the C++ specs paper,
> but I'll pass on that...).
>
> Either one worked quite well for my purpose (except for some reason,
> violating the const declaration only results in a warning in both
> compilers, but an error in CW, which is what my class uses), but I
> noticed that DJGPP's generated binary size is considerably larger than
> that of Borland compiler. With DJGPP, I pretty much always get ~200K
> binaries while with Borland's compiler I get ~40K binaries.
>
> Being a fairly introductory class, most of the assignments are trivial
> (implement a priority queue using a linked list, etc.), and no STL is
> used. I turn on optimization when compiling with both compilers.
>
> Can someone please explain why this is the case?
See FAQ section 8.13.
--
Nate Eldredge
neldredge AT hmc DOT edu
- Raw text -