HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

luac — Lua bytecode compiler. More information: <https://www.lua.org/manual/5.4/luac.html>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandlualuacbytecodecliinformationcompilermore

Problem

How to use the luac command: Lua bytecode compiler. More information: <https://www.lua.org/manual/5.4/luac.html>.

Solution

luac — Lua bytecode compiler. More information: <https://www.lua.org/manual/5.4/luac.html>.

Compile a Lua source file to Lua bytecode:
luac -o {{byte_code.luac}} {{source.lua}}


Do not include debug symbols in the output:
luac -s -o {{byte_code.luac}} {{source.lua}}

Code Snippets

Compile a Lua source file to Lua bytecode

luac -o {{byte_code.luac}} {{source.lua}}

Do not include debug symbols in the output

luac -s -o {{byte_code.luac}} {{source.lua}}

Context

tldr-pages: common/luac

Revisions (0)

No revisions yet.