added print.c

This commit is contained in:
birk
2025-06-07 10:35:57 +02:00
commit 2fcb887bef
2 changed files with 240 additions and 0 deletions

12
README.md Normal file
View 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.