in reply to Re^2: P5NCI + void load_function-signature
in thread P5NCI + void load_function-signature

You do need a fair amount of memory to compile the generated XS file. I could probably chunk it into separate files, so as not to choke compilers and machines without spare cycles.

If you don't have the right signature, you do need to rebuild it though. (If you want to do that and don't need too much complexity, change my $max_len       = 5; on line 72 of build_lib/P5NCI/GenerateXS.pm. Reducing that to 4 should make a much smaller, if less capable, XS file.)

Replies are listed 'Best First'.
Re^4: P5NCI + void load_function-signature
by nostromo (Sexton) on Jun 22, 2006 at 20:19 UTC
    YES! both hints did it :)
    cool, it works!
    thank you so much, chromatics!
Re^4: P5NCI + void load_function-signature
by diotalevi (Canon) on Jun 22, 2006 at 20:21 UTC

    How much incidentally? I do lots of stuff on a laptop that only has 32MB of ram.

    ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

      The .so file on my Linux/PPC box is around ten megabytes, so add in gcc overhead and it might take a while. Your best bet is to compile it on another box and copy it over.

Re^4: P5NCI + void load_function-signature
by samtregar (Abbot) on Jun 23, 2006 at 03:25 UTC
    Maybe you could use Inline::C to compile what you need on-demand?

    -sam

      That sorta defeats the purpose of making this available to people who lack a compiler. :)

        Oh, was that the purpose? I thought it was about saving people the trouble of writing C or XS code. Nevermind.

        -sam