in reply to Perl + binary

Re: #3: See Inline::C

Replies are listed 'Best First'.
Re^2: Perl + binary
by zork42 (Monk) on Oct 30, 2013 at 18:45 UTC

      The big advantage of Inline::C is in my opinion that it is relatively easy to move from an Inline::C implementation to a full XS implementation, mostly by copying the right files at the right stage. Inline::C basically automates building an XS file for you.

      This enables you to distribute the compiled file across machines that don't have a C compiler installed and shouldn't have the facility to compile C code. C::TinyCompiler (of course) provides the facility to compile C code on the fly.

      According to its documentation, C::TinyCompiler only works for x86 and ARM processors. Whether that includes x64, I don't know, but if you need to run your code on PPC or other architectures, the Inline::C approach will use the tools used to build Perl for the target architecture and thus is sure to be compatible with the architecture.