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 (Abbot) 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