Mail Archives: djgpp/1997/11/27/10:31:34
William A. Barath wrote:
>
> On Wed, 26 Nov 1997, Paulo Marques wrote:
> On more than one occasion I have written C and ASM code and compared
> operation (writing the C after the ASM, hoping as I did for TPC that the
> compiler would make similar coding choices to what I would have) and
> almost every time GCC has produced code that ran faster- even when the
> code was larger or apparently less efficient! So I can only assume that
> the compiler knows more about the machine organization than I do and is
> capitalizing on that.
I think it depends which kind of program you've written the code for!!
For me, for a polygone routine, my assembly code was faster and I,ve
only traduce (with some optimization of mine) the C code that was even
optimized!!
PS: the C code was compiled with -O2 -s -m486
-----------
I've heard that the -O3 option was "buggy". As the problem's been fixed?
--
^ ^ ^
| | |
+-+-+ Fabrice ILPONSE
| <fabrice AT asim DOT lip6 DOT fr>
|
|
-
- Raw text -