Skip to content

Conversation

@Lahvuun
Copy link

@Lahvuun Lahvuun commented Dec 8, 2025

Based on the 5.1 pattern.

I'm far from an expert on Lua bytecode, but it works well with the file I needed it for, and with the test file I produced.

Based on Lua 5.1 pattern.
function fac(n)
    if n < 2 then
        return 1
    end
    return n * fac(n - 1)
end

./luac - < test.lua
Lua compiled with make ARFLAGS=rv CC="gcc -m32"
at commit 762c7370376dbd13cd8aeb4d8c8da0bb153269c3
luac compiled with make LUA=../lua CC="gcc -m32"
at commit d002063c4605d3ea12d419b34a23c562f9add318
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant