Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Ravernomina

macrumors member
Original poster
Nov 15, 2009
43
0
Hello everyone. As the top says i would like to change the default Architecture from i686 to x86_64 for gcc. Can anyone tell me how to do this? Thanks!
 
Theres also a compiler switch. I think it's -xarch_x86_64 (check the man page for valid architectures). Then, you could create an alias if you compile in your terminal. For bash & co. that would be
Code:
alias gcc_64 gcc -xarch_x86_64
Then you can just type gcc_64 instead of gcc.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.