what architectures in your Mac OS ?
Uncategorized December 6th, 2007
I was reading my Nezmar pal’s blog when I found a post in which he showed a funny trik to visualize the hardware architectures present in your current installation of Mac OS X.
This is obtainable by giving the following command or your terminal.app:
find / -perm -1 -type f -exec file \{\} \; | grep Mach-O | grep 'for architecture' | awk '{ print substr($0, match($0, "for architecture [^\\)]*”), RLENGTH)}’ | cut -d’ ‘ -f3 | sort | uniq -c
And this is what I get from it after some CPU clicles and hard drives read:
3234 i386
463 ppc
635 ppc64
2346 ppc7400
1 ppc750
1129 x86_64
where i386 means Intel specific code, ppc for the generic PowerPC family, ppc7400 for G4, ppc750 for G3, ppc970 for G5.
Enjoy !
About


Leave a Comment