added print.c
This commit is contained in:
12
README.md
Normal file
12
README.md
Normal file
@@ -0,0 +1,12 @@
|
||||
# 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.
|
||||
Reference in New Issue
Block a user