Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

GCC's "-fno-strict-aliasing"? (Developers)

posted by marcov, 18.09.2008, 13:20

> > A compiler can use that to optimize and reorder statements and
> > assignments.
> > -fno-strict-aliasing turns of that optimization, IOW their code is
> dirty
> > and not ANSI C compatible.
>
> But why is, e.g., Zlib faster then, if -fno-strict-aliasing turns off that
> optimization?

Probably becuase the loop is hand tuned at a certain setting to perform maximally. Compiler reordering might work against it.

If you really want to know, do what all compiler hacks do. Find a piece of source where it matters, objdump both .o and diff.

(probably needs a small script to filter out changing assembler label numbers)

 

Complete thread:

Back to the forum
Board view  Mix view
22747 Postings in 2119 Threads, 402 registered users, 123 users online (0 registered, 123 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum