Linked by Thom Holwerda on Tue 1st Sep 2009 15:03 UTC, submitted by Hakime
Thread beginning with comment 381792
To view parent comment, click here.
To read all comments associated with this story, please click here.
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[2]: Question on default compiler
by ebasconp on Tue 1st Sep 2009 23:55
in reply to "RE: Question on default compiler"







Member since:
2005-11-18
$ cat test.c
int main() {}
$ gcc -o test test.c
$ file test
test: Mach-O 64-bit executable x86_64
$ gcc -arch i386 -o test test.c
$ file test
test: Mach-O executable i386
$ gcc -arch i386 -arch x86_64 -o test test.c
$ file test
test: Mach-O universal binary with 2 architectures
test (for architecture i386): Mach-O executable i386
test (for architecture x86_64): Mach-O 64-bit executable x86_64