Run time differences in Linux gcc versions
In my home computer I've got Slackware 12 with gcc 4.1.2. I wrote a C++ program (could attach the code if you want) and I got a run time of around 2.2s. I transferred the same C++ program to my work computer that has Fedora Core 4 with gcc 4.0.0 and I found that it takes 16s to run. The work computer has more RAM (1 GB) than my home computer (512 MB) and both are AMD 64 bit proc.
I compiled and installed gcc 4.1.2 in my work computer and now find the run times have reduced to 2.2s. Is there a difference in the gcc compiler versions?