Re: dyld 2 questions
Re: dyld 2 questions
- Subject: Re: dyld 2 questions
- From: David Elliott <email@hidden>
- Date: Sat, 8 Mar 2008 14:54:17 -0500
Per-process:
arch -i386 foobar
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).
-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
On Sat, Mar 8, 2008 at 11:11 AM, Shantonu Sen <email@hidden> wrote:
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
@apple.com
This email sent to email@hidden
--
-mmw
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden