Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: Sys::MemInfo on AIX

by rgren925 (Beadle)
on Sep 04, 2018 at 20:14 UTC ( [id://1221707]=note: print w/replies, xml ) Need Help??


in reply to Re: Sys::MemInfo on AIX
in thread Sys::MemInfo on AIX

It worked!

The change from u_longlong_t to double actually needed to be made in MemInfo.xs. All the platforms are now working.

Thank you so much for this! Rick

Replies are listed 'Best First'.
Re^3: Sys::MemInfo on AIX
by bliako (Monsignor) on Sep 05, 2018 at 01:36 UTC

    Cool!

    just test it so that you make sure you don't loose out on the conversion.

    Maybe the following C program will tell you the type sizes provided you manage to compile it:

    #include <stdio.h> #include <libperfstat.h> int main(void){ printf("double: %d bytes\n", sizeof(double)); printf("u_longlong_t: %d bytes\n", sizeof(u_longlong_t)); printf("unsigned long long: %d bytes\n", sizeof(unsigned long +long)); return(0); }

    Note: others here who do know the internals of Perl may have a better solution, if your application is critical.

    bw, bliako

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1221707]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-04-25 10:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found