harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Ellison <t.p.elli...@gmail.com>
Subject Re: Getting the (sun.arch.data.model/com.ibm.vm.bitmode)
Date Wed, 15 Apr 2009 08:25:14 GMT
Hi Mladen,

(sorry for slow response, just catching up on e-mails after a long break)

Mladen Turk wrote:
> Seems there is no system property set that would
> allow to get the 32/64 bit cpu architecture
> Both Sun and IBM vm's provide such an info, but
> I suppose this is not required by the specs.
> However it is used on many systems like Eclipse
> and others to figure out which native library
> to load for example (32 or 64 bit).
> 
> Is there anything that can be used at runtime
> for obtaining such an info except deducting
> that from the os.arch property?

Like you say, the os.arch property will give you that, so you'll see,
for example,

os.arch=x86

or

os.arch=x86_64

What do you get from the non-standard properties?  Just "32" and "64" ?

Regards,
Tim

Mime
View raw message