Results 1 to 3 of 3
According to "http://gcc.gnu.org/gcc-4.3/changes.html", gcc 4.3 supports atomic built-in function "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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-01-2010 #1
- 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?
- 09-02-2010 #2
By upgrading GCC, and glibc, and your Linux possibly.
- 09-03-2010 #3
- 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!