Perl-совместимые регулярные выражения (Perl-compatible regular expressions)
AVAILABILITY OF JIT SUPPORT
JIT support is an optional feature of PCRE. The "configure"
option --enable-jit (or equivalent CMake option) must be set when
PCRE is built if you want to use JIT. The support is limited to
the following hardware platforms:
ARM v5, v7, and Thumb2
Intel x86 32-bit and 64-bit
MIPS 32-bit
Power PC 32-bit and 64-bit
SPARC 32-bit (experimental)
If --enable-jit is set on an unsupported platform, compilation
fails.
A program that is linked with PCRE 8.20 or later can tell if JIT
support is available by calling pcre_config()
with the
PCRE_CONFIG_JIT option. The result is 1 when JIT is available,
and 0 otherwise. However, a simple program does not need to check
this in order to use JIT. The normal API is implemented in a way
that falls back to the interpretive code if JIT is not available.
For programs that need the best possible performance, there is
also a "fast path" API that is JIT-specific.
If your program may sometimes be linked with versions of PCRE
that are older than 8.20, but you want to use JIT when it is
available, you can test the values of PCRE_MAJOR and PCRE_MINOR,
or the existence of a JIT macro such as PCRE_CONFIG_JIT, for
compile-time control of your code. Also beware that the
pcre_jit_exec()
function was not available at all before 8.32,
and may not be available at all if PCRE isn't compiled with
--enable-jit. See the "JIT FAST PATH API" section below for
details.