Skip to content

plctlab/LuaJIT

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3,036 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 IgnotaYun/LuaJIT,v2.1-riscv64. Development branch is avaliable at IgnotaYun/LuaJIT,riscv.

This is the release branch of LJRV, containing patchset based on dev branch commit 1ce02ddf8b6e ("riscv(interp): fix cdata matching handler in BC_ISEQV & BC_ISNEV"), based off LuaJIT v2.1 rolling 194d7f2d635a ("Merge branch 'master' into v2.1")

Introduction

LJRV is a ongoing porting project of LuaJIT to the RISC-V 64-bit architecture by ISRC, 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.

FFI struct passing is known to be partially broken, please report any issue you encounter.

Bug Report

Please report bugs to Issues.

Copyright

LuaJIT is Copyright (C) 2005-2026 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-2026 ISRC, ISCAS. Contributed by gns. LJRV is free software, released under the MIT license. LJRV is part of openRuyi.

About

Porting LuaJIT to RISC-V 64

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • C 81.7%
  • Lua 16.4%
  • Other 1.9%