[Plugin] JIT compiler
#1

This is a Just-In-Time (JIT) compiler for AMX.

It translates AMX bytecode (the code produced by Pawn compiler) to native x86 code at run time to speed up script execution. You can read more about JIT compilation here.

Download

Changelog:

Code:
v0.3.2 - 27/03/2012
- Fixed crash of HALT/BOUNDS instructions
- Fixed crash if native function is not found - now a runtime error 19 is shown instead

v0.3.1 - 26/03/2012
- Fixed crash during compilation if script contains an empty switch statement
- Fixed crash if server.cfg contains non-ASCII characters
- Added support for LCTRL 6/SCTRL 6
- Added support for CALL.pri/JUMP.pri

v0.3 - 25/03/2012
- Now the whole script is compiled at once, when AMX is loaded. If an error occurs 
  during JIT compilation, a message is printed and the code is run as usually i.e. 
  without JIT.
- Mad it possible to set the size of stack on which JIT code is executed via the 
  "jit_stack" option in server.cfg. 
- Reduced CALL overhead of recursive functions, thanks to first item. 
- Made it possible for JUMP/JCC to jump outside of function bounds.

v0.2 - 23/03/2012
- Ported to AsmJit - http://code.******.com/p/asmjit/
- which automatically fixed a few issues

v0.1 - 19/03/2012
- Initial release

If JIT suddenly crashes your server consider running samp-server.exe under ProcDump and submitting the .dmp file to me. To do that open command prompt, cd to you server directory and run this command

Code:
path/to/procdump.exe -e -ma -x samp-server.exe samp-server.dmp
Reply


Messages In This Thread
JIT compiler - by Zeex_ - 19.03.2012, 14:24
Re: JIT compiler - by Anzipane! - 19.03.2012, 14:30
Re: JIT compiler - by TheArcher - 19.03.2012, 14:46
Re: JIT compiler - by Ricop522 - 19.03.2012, 15:00
AW: JIT compiler - by asdfgh98 - 19.03.2012, 15:44
Re: JIT compiler - by Mauzen - 19.03.2012, 15:58
Re: JIT compiler - by wups - 19.03.2012, 16:10
Re: JIT compiler - by ][Noname][ - 19.03.2012, 16:16
Re: JIT compiler - by Mauzen - 19.03.2012, 16:24
Re: JIT compiler - by Rock1 - 19.03.2012, 16:27
Re: JIT compiler - by kacper55331 - 19.03.2012, 16:29
Re: JIT compiler - by Slice - 19.03.2012, 18:29
Re: JIT compiler - by CyNiC - 19.03.2012, 19:19
Re: JIT compiler - by T0pAz - 19.03.2012, 19:45
Re: JIT compiler - by new121 - 19.03.2012, 20:04
Re: JIT compiler - by T0pAz - 19.03.2012, 20:07
Re: JIT compiler - by PawnFox - 19.03.2012, 20:15
Re: JIT compiler - by playbox12 - 19.03.2012, 21:17
Re: JIT compiler - by System64 - 19.03.2012, 21:30
Re: JIT compiler - by Rock1 - 19.03.2012, 21:35
Re: JIT compiler - by Whitetiger - 19.03.2012, 22:03
Re: JIT compiler - by QuaTTrO - 20.03.2012, 06:16
Re: JIT compiler - by rbN. - 20.03.2012, 10:33
Re: JIT compiler - by Vince - 20.03.2012, 10:42
Re: JIT compiler - by Niko_boy - 20.03.2012, 11:43
Re: JIT compiler - by rbN. - 20.03.2012, 11:48
Re: JIT compiler - by Mark™ - 20.03.2012, 11:55
Re: JIT compiler - by Vince - 20.03.2012, 13:00
AW: Re: JIT compiler - by Meta - 01.04.2012, 12:16
Re: AW: Re: JIT compiler - by ][Noname][ - 03.04.2012, 05:22
Re: JIT compiler v0.3.2 - by Slice - 16.04.2012, 11:54
Re: JIT compiler v0.3.2 - by Richie© - 16.04.2012, 20:06
Re: JIT compiler v0.3.2 - by Slice - 16.04.2012, 20:16
Re: JIT compiler v0.3.2 - by Richie© - 16.04.2012, 20:22
[No subject] - by ][Noname][ - 20.04.2012, 05:30
Re: JIT compiler v0.3.2 - by Richie© - 20.04.2012, 18:04
Re: JIT compiler v0.3.2 - by steki. - 22.04.2012, 17:41
Re: JIT compiler v0.3.2 - by Slice - 22.04.2012, 18:09
Re: JIT compiler v0.3.2 - by Hanger - 02.05.2012, 19:06
Re: JIT compiler v0.3.2 - by Richie© - 04.05.2012, 18:45
Re: JIT compiler v0.3.2 - by leong124 - 06.05.2012, 07:25
Respuesta: JIT compiler v0.3.2 - by [Vector] - 06.05.2012, 07:34
Re: JIT compiler v0.3.2 - by Slice - 06.05.2012, 08:42
Re: JIT compiler v0.3.2 - by rbN. - 18.05.2012, 19:26
Re: JIT compiler v0.3.2 - by Rg-Gaming.Info - 22.05.2012, 05:19
Re: JIT compiler v0.3.2 - by Night Dreamer - 24.05.2012, 10:06
Re: JIT compiler v0.3.2 - by Uberanwar - 12.06.2012, 06:33
Re: JIT compiler v0.3.2 - by SDraw - 12.06.2012, 09:19
Re: JIT compiler v0.3.2 - by sent161 - 24.06.2012, 17:44
Respuesta: JIT compiler v0.3.2 - by Patrik356b - 25.06.2012, 02:14
Re: JIT compiler v0.3.2 - by Lordz™ - 25.10.2012, 16:18
Re: JIT compiler v0.3.2 - by Y_Less - 25.10.2012, 16:25
Re: JIT compiler v0.3.2 - by Plovix - 11.11.2012, 07:48
Re: JIT compiler v0.3.2 - by Night Dreamer - 12.11.2012, 12:33
Re: JIT compiler v0.3.2 - by Cypress - 12.11.2012, 13:08
Re: JIT compiler v0.3.2 - by TheArcher - 12.11.2012, 13:18
Re: JIT compiler v0.3.2 - by whitetigerswt - 15.12.2012, 00:20
Re: JIT compiler v0.3.2 - by KingJ - 16.12.2012, 00:48
AW: JIT compiler v0.3.2 - by [DFE]Ike - 09.01.2013, 20:22
Re: JIT compiler v1.2.5 - by andyandyy8 - 04.02.2014, 15:21
Re: JIT compiler v1.2.5 - by xeeZ - 04.02.2014, 16:23
Re: JIT compiler v1.2.5 - by Reboma - 05.02.2014, 08:09
Re: JIT compiler v1.2.5 - by xeeZ - 05.02.2014, 12:49
Re: JIT compiler v1.2.5 - by xeeZ - 01.09.2014, 22:59
Respuesta: JIT compiler v1.2.5 - by oOFotherOo - 01.09.2014, 23:57
Re: JIT compiler v1.2.5 - by paulommu - 02.09.2014, 00:24
Re: JIT compiler v1.2.5 - by xeeZ - 02.09.2014, 05:36
Re: JIT compiler v1.2.5 - by uZ1 - 02.09.2014, 19:10
Re: JIT compiler v1.2.5 - by xeeZ - 02.09.2014, 19:37
Re: JIT compiler v1.2.5 - by ProjectMan - 03.09.2014, 01:32
Re: JIT compiler v1.2.5 - by xeeZ - 03.09.2014, 05:23
Re: JIT compiler v1.2.5 - by xeeZ - 28.03.2015, 17:58
Re: JIT compiler v2.0.3 - by kaZax - 31.03.2015, 16:23
Re: JIT compiler v2.0.3 - by xeeZ - 31.03.2015, 17:43
Re: JIT compiler v2.0.3 - by kaZax - 01.04.2015, 05:26
Re: JIT compiler v2.0.3 - by xeeZ - 01.04.2015, 06:02
Re: JIT compiler v2.0.3 - by kaZax - 01.04.2015, 06:55
Re: JIT compiler v2.0.3 - by xeeZ - 01.04.2015, 07:29
Re: JIT compiler v2.0.3 - by kaZax - 01.04.2015, 07:46
Re: JIT compiler - by RaeF - 21.02.2016, 02:54
Re: JIT compiler - by Lasha - 19.07.2017, 10:47
Respuesta: JIT compiler - by JuanUgalde - 18.08.2017, 21:48
Re: Respuesta: JIT compiler - by Spmn - 19.08.2017, 14:51
Re: JIT compiler - by ByMatt20030 - 06.09.2017, 16:52
Re: JIT compiler - by Mauzen - 06.09.2017, 17:08

Forum Jump:


Users browsing this thread: 2 Guest(s)