Yuri Posted January 16, 2012 Share Posted January 16, 2012 Is it possible to build x86_64 with gcc in a OSX installed in an AMD system? =/ Thx Link to comment https://www.insanelymac.com/forum/topic/274730-build-x86_64-with-amd-osx/ Share on other sites More sharing options...
neoavatar Posted February 12, 2012 Share Posted February 12, 2012 Yes. But, here's the deal. There's this flag in CFLAGS/CXXFLAGS: -march=prescott The 'prescott' value means: "Improved version of Intel Pentium4 CPU with MMX, SSE, SSE2 and SSE3 instruction set support." And, that means: NO 64bit INSTRUCTION SET! Don't you worry. Changing 'march' to 'nocona' or 'core2' seems to fix that. But, there's a catch. This must be done manually. Unless someone can tell us how can we change the CPU ID value that comes from the /usr/sbin/sysctl -n hw.cpufamily command. More on architeture options for GCC: http://gcc.gnu.org/o...64-Options.html EDIT: See: Changing CPU Family [AMD] Link to comment https://www.insanelymac.com/forum/topic/274730-build-x86_64-with-amd-osx/#findComment-1795554 Share on other sites More sharing options...
Recommended Posts