13 lines
547 B
Markdown
13 lines
547 B
Markdown
# Installation
|
|
1. Download or clone this repository.
|
|
2. Replace the original `print.c` and `ldump.c` files in the official Lua 5.1 source directory with the modified versions from this repo.
|
|
3. Compile Lua as you normally would.
|
|
|
|
# Usage
|
|
Once you've recompiled Lua:
|
|
|
|
- Running `luac <file.lua>` will output all the binary data being written during compilation.
|
|
- Running `luac -l <file.lua>` or `luac -l -l <file.lua>` will output greater information about the instructions generated.
|
|
|
|
This is useful for exploring how Lua bytecode is structured.
|