-
Notifications
You must be signed in to change notification settings - Fork 75
/
README
68 lines (60 loc) · 2.23 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
SLJIT - Stack Less JIT Compiler
Purpose:
A low-level, machine independent JIT compiler, which is suitable for
translating interpreted byte code into machine code. The sljitLir.h
describes the LIR (low-level intermediate representation) of SLJIT.
Key features:
- Supports several target architectures:
x86 32/64, ARM 32/64, RiscV 32/64, s390x 64,
PowerPC 32/64, LoongArch 64, MIPS 32/64
- Supports a large number of operations
- Supports self-modifying code
- Supports tail calls
- Support fast calls (non-ABI compatible)
- Supports byte order reverse (endianness switching)
- Supports unaligned memory accesses
- Supports SIMD / atomic operations on certain CPUs
- Direct register access, both integer and floating point
- Stack space allocated for function local variables can be
accessed as a linear memory area
- All-in-one compilation is supported
- When sljitLir.c is directly included by a C source file,
the jit compiler API can be completely hidden from
external use (see SLJIT_CONFIG_STATIC macro)
- Code can be generated for multiple target cpus
by including sljitLir.c in different C files, where
each compiler instance is configured to target a
different architecture
- The compiler can be serialized into a byte buffer
- Useful for ahead-of-time compiling
- Code generation can be resumed after deserialization
(partial ahead-of-time compiling)
Compatible:
C99 (C++) compilers.
Using sljit:
Copy the content of sljit_src directory into your project source directory.
Add sljitLir.c source file to your build environment. All other files are
included by sljitLir.c (if required). Define the machine by SLJIT_CONFIG_*
selector. See sljitConfigCPU.h for all possible values. For C++ compilers,
rename sljitLir.c to sljitLir.cpp.
More info:
https://zherczeg.github.io/sljit/
Contact:
Special thanks:
Alexander Nasonov
Carlo Marcelo Arenas Belón
Christian Persch
Daniel Richard G.
Giuseppe D'Angelo
H.J. Lu
James Cowgill
Jason Hood
Jiong Wang (TileGX support)
Marc Mutz
Martin Storsjö
Michael McConville
Mingtao Zhou (LoongArch support)
Walter Lee
Wen Xichang
YunQiang Su