site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=ERapXu7DuWEXIJVttru6mhjW8QgswMiYTrNsmcivVw0=; b=TIYia7JJ8hQFGHlbbIIy0HzC2RP91PQDx9B+AtqDVwoP6QKNCtrQz2XOh5C77OkSiU+b1sib2xnGDesEhxhfuRJ6JoupPX5j2UqqYzNfDQqdMRWtUTiP6d03x5LuUMupUNasI8xS0n3zApGiRpxd8B9jvoGgdt37eehdlh5iB0Q= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=w1T0TlPtTCg9aj7CLGmpq6RuO2OUxJeBaqt36CbtsCJsra3cDB5cWzHGcha5fBycb2zbXkxlNB9A9k0GTJi2fVaoe7mtsoS4BCPKxzyGUZH1x0pAM7urlz5dpJJobrXNBPr6kmqnogpJ3KyzL5UO4fGAJpuUVuClN9UZXUdwRJ0= #include <stdio.h> /* cc -ansi -Wall -O3 -arch i386 -DARCH_X86_64=0 main.c -o main-i386 cc -ansi -Wall -O2 -arch x86_64 -DARCH_X86_64=1 main.c -o main-x86_64 lipo -create -arch i386 main-i386 -arch x86_64 main-x86_64 -o main */ /* main.c */ int main(void) { #if ARCH_X86_64 puts("hello world 64!"); #else puts("hello world!"); #endif return 0; } /* EOF */ $ ./main-i386 hello world! $ ./main-x86_64 hello world 64! $ ./main hello world 64! 1 - is there a way to know which arch/img has been loaded? 2 - is it possible to force one arch to be loaded rather than the default one? -- -mmw _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
mm w