Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Jan 2007
getting atomic built-in function on gcc3.4
"GCC can now use load-linked, store-conditional and sync instructions to implement atomic built-in functions such as __sync_fetch_and_add"
However, I am still using gcc 3.4 on my Redhat EL4. How do I get this built-in function installed?
By upgrading GCC, and glibc, and your Linux possibly.
- Join Date
- Apr 2009
- I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
You can install gcc 4.4 on EL5. I don't know about EL4 however. Check in your yum repository to see if it is listed. You can have any number of gcc versions installed on your system at once. I have 2.95, 3.4, 4.1, 4.4, and I just finished building and installing the latest, 4.5.1. My default is still 4.1, but I will probably change that to 4.4 since as you noted it has some good enhancements. 4.5.1 is the latest "bleading edge" compiler suite only released in the past few weeks. It took me a full day to build and test all the parts of it on my 8-core 3GHz E5450 system using the 4.4 compiler.Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!