[OSUNIX-dev] Re: [Open64-devel] [hpcdev-discuss] OpenSolaris open64
port - 1st round patch review
"C. Bergström"
cbergstrom at netsyncro.com
Tue Mar 3 07:52:00 GMT 2009
Rayson Ho wrote:
> On Mon, Mar 2, 2009 at 7:13 PM, John Martin <John.M.Martin at sun.com> wrote:
>
>>> 1) Best way to replace /proc/cpuinfo for OpenSolaris?
>>>
>>> opencc -v
>>> opencc WARNING: cannot read /proc/cpuinfo, defaulting to basic 32-bit x86.
>>>
>> This code is looking for the plain text processor description, e.g.
>> "Intel(R) Core(TM) i7". On Solaris this can be fetched with smbios.
>>
>
> Another way is to fetch the information from "/dev/cpu/self/cpuid":
>
> http://blogs.sun.com/JoeBonasera/entry/detecting_hardware_virtualization_support_for
>
That's CDDL code.. can't include it with GPL, but otherwise it's exactly
what we need.
>
>
>> 2) The patch comments out building ld-new. This needs to be fixed, but
>> what's the best way to do this on OpenSolaris only?
>>
>
> So are we planning to use the native Solaris linker??
>
I assume the linker included is just gnu ld? If so there's numerous
benefits to using sun ld. Unless there's a compelling reason not to I
say comment it out for Solaris and use sun ld by default.
./C
More information about the OSUNIX-dev
mailing list