in reply to Re^7: Inline::C on Windows: how to improve performance of compiled code?
in thread Inline::C on Windows: how to improve performance of compiled code?
Both renditions of foo() do essentially the same thing.use strict; use warnings; use Inline C => Config => PRE_HEAD => '#define PERL_NO_GET_CONTEXT 1', ; use Inline C => <<'EOC'; /* SV * foo(int x) { return newSViv(x); } */ int foo(int x) { return x; } EOC my $x = foo(-1234);https://perlconference.us/tpc-2018-slc/ print $x;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: Inline::C on Windows: how to improve performance of compiled code?
by BrowserUk (Patriarch) on Jun 17, 2018 at 04:07 UTC |