Un-alignment in structures

Eugene D. Brooks III brooks at lll-crg.ARPA
Sun Apr 7 16:05:39 AEST 1985


> >> If you have to remove one millisecond from a tight loop that has to run
> >> in 50 milliseconds, you really should use assembly.
> > 
> > If you can possibly do it in assembly then an optimizing compiler that
> > generates good code can do it just as fast and you gain portability.
> 
>   Can somebody *PROVE* this.  I don't think it's true.  I think a better
> statement would be that an optimizing compiler *might* be able to generate
> code that is as fast.  (And then again it might not be able to.)

The proof goes as follows.  If the compiler did not generate optimal code
then the compiler was not an optimizing compiler of high enough quality.
Get a better compiler.

							QED, and 1/2 :-)



More information about the Comp.lang.c mailing list