jamian Posted October 14, 2005 Share Posted October 14, 2005 Hello ! I installed MacOSX x86 (the deadmoo image) a few days ago and I am wondering : does gcc compiles PowerPC or x86 code ? Is there a way to tell it which code to produce ? Link to comment https://www.insanelymac.com/forum/topic/3524-code-produced-by-gcc/ Share on other sites More sharing options...
MitchBomcanhao Posted October 14, 2005 Share Posted October 14, 2005 i tried compiling a program with -S flag and checking it, its quite different than the regular x86 version. Link to comment https://www.insanelymac.com/forum/topic/3524-code-produced-by-gcc/#findComment-22265 Share on other sites More sharing options...
jbettcher Posted October 14, 2005 Share Posted October 14, 2005 This is the info I get from the gcc -v command in Terminal. tiger-x86:~ jbettcher$ gcc -v Reading specs from /usr/lib/gcc/i686-apple-darwin8/4.0.0/specs Target: i686-apple-darwin8 Configured with: /private/var/tmp/gcc/gcc-5026.obj~19/src/configure --disable-checking --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^+.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/gcc/darwin/4.0/c++ --build=powerpc-apple-darwin8 --with-arch=pentium4 --with-tune=prescott --program-prefix= --host=i686-apple-darwin8 --target=i686-apple-darwin8 Thread model: posix gcc version 4.0.0 (Apple Computer, Inc. build 5026) tiger-x86:~ jbettcher$ Link to comment https://www.insanelymac.com/forum/topic/3524-code-produced-by-gcc/#findComment-22274 Share on other sites More sharing options...
niteice Posted October 15, 2005 Share Posted October 15, 2005 I'm pretty sure Apple's gcc compiles for the host architecture unless being told otherwise. Link to comment https://www.insanelymac.com/forum/topic/3524-code-produced-by-gcc/#findComment-22282 Share on other sites More sharing options...
Recommended Posts