Re:Show HN: Luastatic – Build an executable from a Lua program
by camperman on Monday October 26, 2015 @01:40PM
(#10452946)
Luajit detects the kind of output file passed to the -b option, in this case .o, and writes the data accordingly. It's actually writing compiled architecture-specific object code here which can be linked into a static library. You can also pass it a .c or a .h extension to get c source or headers.
I think luac compiles to bytecode only.
What's the difference between the bytecode generated by luajit compared to luac?