Mail Archives: djgpp/1998/10/20/07:12:06
On Mon, 19 Oct 1998, Robert Hoehne wrote:
> Do you have any hints what options should be en-/disabled
> for such targets? Let say the following:
>
> - fastest code
> - smallest code
> - developing code
> - releasing code
I'm probably not the best person to give advice for a tool that I
don't use, but here are my $0.02:
I think that in the vast majority of the cases fastest and smallest
are the same with GCC: use -O2. With EGCS and PGCC, -O6 might be the
fastest and -O2 the smallest, but I don't have enough experience with
these to tell for sure.
Since I think developing and releasing with different options (except
-s) is a bad idea, I think the "release" target should at most add -s,
and maybe not even that (since some people might want to release software
with debug info).
So, in my view, it boils down to:
[ ] SMALLEST CODE
[ ] FASTEST CODE
[ ] WITHOUT DEBUG INFO
and the last can be used with both of the first two.
- Raw text -