site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Per-process: arch -i386 foobar -Dave On Mar 8, 2008, at 2:16 PM, mm w wrote: ha thank you, something that maches 8) my question was not related to gcc or compilation time it was related to runtime, so there is no way to force the OS to run in i386 mode, but as far I know, the mach-o loader is able to deal with it, i just wanted to know if it was possible to force it. thank you for your answers System-wide? No. Not without recompiling your kernel. Shantonu Sent from my MacBook On Mar 8, 2008, at 11:08 AM, mm w wrote: So, to make simple, imagine a wonderful OS running on 32 extend 64 arch, all the sources are fat i386/ x86_64 is it to possible to influence the prefered mode -- -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/dfe%40tgwbd.org _______________________________________________ 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... System-wide: On x86-64 you can add -legacy to the boot-args nvram property (using the nvram command-line tool). That will force the kernel to run in i386 mode instead of x86-64 mode so you will not be able to run 64-bit programs at all and everything including the kernel itself will run in true i386 mode. In this situation, trying something like arch -x86_64 foobar will totally fail since the CPU will not ever be in 64-bit mode. If that's what you want, you can have it. It's also useful if you are trying to run Darwin on certain CPUs like late-model Pentium 4 that pass the startup checks in tsc.c, or at least did until Leopard's xnu removed the check for CPU family 0xf (extended), but fail later on in kernel startup because of a missing bcopy 64 commpage routine (which requires Supplemental SSE3 which is not present on Pentium 4). On Sat, Mar 8, 2008 at 11:11 AM, Shantonu Sen <ssen@apple.com> wrote: _______________________________________________ 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/ssen %40apple.com This email sent to ssen@apple.com This email sent to dfe@tgwbd.org This email sent to site_archiver@lists.apple.com