I've got a core i7 machine wtih CentOS 5.8 that I SSH into and use for running simulations. Unfortunately it only has gcc version 4.1.2. This seems to be producing vastly slower programs than what I get when compiling with optimizations on my slower laptop machine with Microsoft Visual Express c++ 2010. I've tried various g++ optimization flags but they aren't much help so I'm thinking i need to upgrade gcc.
I don't have root on the machine so it looks like I'd have to install it in my home directory. Is this feasible and if so are there any specific instructions needed to do this?
Thanks
You could use EasyBuild, which will allow you to very easily install a particular GCC version without requiring root, see http://hpcugent.github.com/easybuild .
Disclaimer: I'm an EasyBuild developer.