[openssl-dev] MacOS defaults?
Jeffrey Walton
noloader at gmail.com
Mon Mar 7 20:57:29 UTC 2016
On Sun, Mar 6, 2016 at 6:05 PM, Andy Polyakov <appro at openssl.org> wrote:
>>> Hmm. So why do I see this on my macbook?
>>>
>>> $ arch
>>> i386
>>
>> Try "uname -m"
>
> This is not reliable. Because it must have changed recently, it used to
> be i386 even on 64-bit systems. sysctl -n hw.optional.x86_64 is the way
> to go, it's right there in ./config...
Throwing an OS X 10.5/PowerMac into the mix. Its a 64-bit PowerPC:
$ machine
ppc970
$ sysctl -n hw.optional.x86_64
second level name optional in hw.optional.x86_64 is invalid
$ uname -m
Power Macintosh
However, there are two interesting ones on the PowerMac:
$ sysctl -A 2>/dev/null | grep hw | egrep 'machine|64'
hw.machine = Power Macintosh
hw.physmem = 2147483648
hw.l2settings = 2147483648
hw.optional.64bitops: 1
hw.cpu64bit_capable: 1
And on a modern Intel with a Core-i7:
$ sysctl -A 2>/dev/null | grep hw | egrep 'machine|64'
hw.machine = x86_64
hw.physmem = 2147483648
hw.cachelinesize = 64
hw.cpu64bit_capable: 1
hw.cachelinesize: 64
hw.optional.x86_64: 1
More information about the openssl-dev
mailing list