Is three any performance benefit of using gcc4 over gcc34 ? Currently we are using gcc34 with old c runtime to support all old os. So is there any performance benefit of using gcc4 ?
As per Bench-marking tests run by RedHat for g++ (GCC-3.4.2) & g++ (GCC-4.x) on identical platform and enviornment,
For Compilation Performance:
gcc-4 is faster than gcc-3.4, by a significant margin.
For Executable Performance:
There is little difference between the two.
Check the bench-marking comparisons here
For your code & architecture, you will have to benchmark it to see if the results are similar.