I was poking around in Snow Leopard and ran this command:
And I was surprised to see PPC code still in the binary?
in /bin alone, the following programs contain PPC code:
Why is that there, given that SL only runs on intel?
$ file /bin/bash
/bin/bash: Mach-O universal binary with 2 architectures
/bin/bash (for architecture x86_64): Mach-O 64-bit executable x86_64
/bin/bash (for architecture i386): Mach-O executable i386
I only see Intel binaries (as I expected.) Then I ran this command:/bin/bash: Mach-O universal binary with 2 architectures
/bin/bash (for architecture x86_64): Mach-O 64-bit executable x86_64
/bin/bash (for architecture i386): Mach-O executable i386
$ file /bin/ps
/bin/ps: setuid Mach-O universal binary with 3 architectures
/bin/ps (for architecture x86_64): Mach-O 64-bit executable x86_64
/bin/ps (for architecture i386): Mach-O executable i386
/bin/ps (for architecture ppc7400): Mach-O executable ppc
/bin/ps: setuid Mach-O universal binary with 3 architectures
/bin/ps (for architecture x86_64): Mach-O 64-bit executable x86_64
/bin/ps (for architecture i386): Mach-O executable i386
/bin/ps (for architecture ppc7400): Mach-O executable ppc
And I was surprised to see PPC code still in the binary?
in /bin alone, the following programs contain PPC code:
/bin/[ (for architecture ppc7400): Mach-O executable ppc
/bin/date (for architecture ppc7400): Mach-O executable ppc
/bin/domainname (for architecture ppc7400): Mach-O executable ppc
/bin/echo (for architecture ppc7400): Mach-O executable ppc
/bin/expr (for architecture ppc7400): Mach-O executable ppc
/bin/hostname (for architecture ppc7400): Mach-O executable ppc
/bin/kill (for architecture ppc7400): Mach-O executable ppc
/bin/launchctl (for architecture ppc7400): Mach-O executable ppc
/bin/ps (for architecture ppc7400): Mach-O executable ppc
/bin/pwd (for architecture ppc7400): Mach-O executable ppc
/bin/rcp (for architecture ppc7400): Mach-O executable ppc
/bin/sleep (for architecture ppc7400): Mach-O executable ppc
/bin/stty (for architecture ppc7400): Mach-O executable ppc
/bin/sync (for architecture ppc7400): Mach-O executable ppc
/bin/test (for architecture ppc7400): Mach-O executable ppc
/bin/wait4path (for architecture ppc7400): Mach-O executable ppc
/bin/zsh (for architecture ppc7400): Mach-O executable ppc
/bin/date (for architecture ppc7400): Mach-O executable ppc
/bin/domainname (for architecture ppc7400): Mach-O executable ppc
/bin/echo (for architecture ppc7400): Mach-O executable ppc
/bin/expr (for architecture ppc7400): Mach-O executable ppc
/bin/hostname (for architecture ppc7400): Mach-O executable ppc
/bin/kill (for architecture ppc7400): Mach-O executable ppc
/bin/launchctl (for architecture ppc7400): Mach-O executable ppc
/bin/ps (for architecture ppc7400): Mach-O executable ppc
/bin/pwd (for architecture ppc7400): Mach-O executable ppc
/bin/rcp (for architecture ppc7400): Mach-O executable ppc
/bin/sleep (for architecture ppc7400): Mach-O executable ppc
/bin/stty (for architecture ppc7400): Mach-O executable ppc
/bin/sync (for architecture ppc7400): Mach-O executable ppc
/bin/test (for architecture ppc7400): Mach-O executable ppc
/bin/wait4path (for architecture ppc7400): Mach-O executable ppc
/bin/zsh (for architecture ppc7400): Mach-O executable ppc
Why is that there, given that SL only runs on intel?