Skip to content

zhangjiangen11/LuaJIT

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LJRV - LuaJIT RISC-V 64 Port

LuaJIT is a Just-In-Time (JIT) compiler for the Lua programming language, RISC-V is a free and open ISA enabling a new era of processor innovation.

Find latest LJRV release at plctlab/LuaJIT, branch riscv64-v2.1-branch or plctlab/LuaJIT, branch v2.1-riscv64. Development branch is avaliable at plctlab/LuaJIT, branch riscv.

This is the release patch branch of LJRV, containing patchset based on LJRV dev branch commit b90b63ab3535 ("riscv(jit): fix compile-time ISE detection when HWPROBE is not avaliable"), based off LuaJIT v2.1 rolling f725e44cda8f (" Merge branch 'master' into v2.1")

Introduction

LJRV is a ongoing porting project of LuaJIT to the RISC-V 64-bit architecture by PLCT Lab, ISCAS. The ultimate goal is to provide a RISC-V 64 LuaJIT implementation and have it upstreamed to the official LuaJIT repository.

Building and Packaging

LJRV is built and packaged in the same way as LuaJIT, requires a recent toolchain based on GCC or Clang with RISC-V 64 support and GNU Make. For building and installation instructions, please refer to the LuaJIT README.

For distro maintainers and packagers, we encourage one to follow our branch and patchset, as we would keep it up-to-date with the latest LuaJIT upstream. Cherry-picking and backporting is strongly discouraged, "no matter how self-standing individual changes look (because they often are not)".

Progress

  • Interpreter Runtime
  • JIT Compiler

LJRV is still considered of beta quality, take it with a grain of salt. For production usage, you might want to disable the JIT compiler during compilation by setting XCFLAGS+= -DLUAJIT_DISABLE_JIT in Makefile or environment variable.

Bug Report

Please report bugs to Issues.

Copyright

LuaJIT is Copyright (C) 2005-2023 Mike Pall. LuaJIT is free software, released under the MIT license. See full Copyright Notice in the COPYRIGHT file or in luajit.h.

LJRV is Copyright (C) 2022-2024 PLCT Lab, ISCAS. Contributed by gns. LJRV is free software, released under the MIT license. LJRV is part of RuyiSDK.

About

Porting LuaJIT to RISC-V

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 81.6%
  • Lua 16.5%
  • Other 1.9%