Lua Programming/luac

From Wikibooks, open books for an open world
Jump to navigation Jump to search

The luac compiler can be used to precompile programs into bytecode.

Bytecode in lua is portable to all architectures with the same word size, even if the byte endian order is different. Note however that bytecode for different word size platforms is not portable to systems that use a different word size, so precompiled bytecode created for a 16 bit platform cannot be used on a 32 bit platform.