On 24 April 2017 at 06:01, Alceu Rodrigues de Freitas Junior via
cpan-testers-discuss <cpan-testers-discuss@perl.org> wrote:
> It occurred to me that I would still need h2ph to invoke the getdents
> syscall anyway, unless there is some alternatives I'm not aware.
>
> Maybe using XS?


That was basically my conclusion: don't bother with h2ph, just write a
.pm file and a .XS file, and then invoke all the C Specific API calls
from XS.

The initial XS might be a little more work, but you still need a
compiler on the target system anyway, and XS is much more battle
proven and understood by existing tools than h2ph and the hacks you
need to work with it.

Besides, performing syscall() from perl space is a bit slower than the
same call in native C, and you have to probably fuss with pack in
Perl.


-- 
Kent

KENTNL - https://metacpan.org/author/KENTNL
  • adding h2ph con... Alceu Rodrigues de Freitas Junior via cpan-testers-discuss
    • Re: adding... Olivier MenguĂ©
      • Re: ad... Alceu Rodrigues de Freitas Junior via cpan-testers-discuss
      • Re: ad... Olivier MenguĂ©
    • Re: adding... Kent Fredric
      • Re: ad... Alceu Rodrigues de Freitas Junior via cpan-testers-discuss
        • Re... Jean-Damien Durand
          • ... Alceu Rodrigues de Freitas Junior via cpan-testers-discuss
            • ... Kent Fredric

Reply via email to