why does arm-target gcc-3.4.4 have a better performace than gcc-4.2.4?
Ian Lance Taylor
Wed Jun 23 00:06:00 GMT 2010
Heyu Zhu <email@example.com> writes:
> I configure gcc as below
> ../gcc-4.2.4(or gcc-3.4.4)/configure
> Executable binary file generated by gcc-3.4.4 is 15% faster than by
> gcc-4.2.4 for some test programs, for example, Dhrystone.
> Need i configure gcc-4.2.4 with special options to get a good
> performace as gcc-3.4.4 does?
There are no configure options which will make a difference here.
There may be some runtime options which will help. In particular,
make sure you use -O2 and use a -march option appropriate for your
It is of course entirely possible that there has been some
optimization regression in gcc. If you can pin down the code which is
slower, please open a bug report with a test case as described at
http://gcc.gnu.org/bugs/ . Thanks.
More information about the Gcc-help