SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

This is luac, the Lua compiler.
There are man pages for it in both nroff and html in ../../doc.

luac translates Lua programs into binary files that can be loaded and executed with lua_dofile in C or with dofile in Lua. The main advantages of pre-compiling chunks are: faster loading, protecting source code from user changes, and off-line syntax error detection. luac can also be used to learn about the Lua virtual machine.

Here are the options that luac understands:

  • process stdin -l list -o file output file (default is "luac.out") -p parse only -s strip debug information -t test code integrity -v show version information

luac is also an example of how to use the internals of Lua (politely). Finally, luac does not need the runtime code, and stubs.c makes sure it is not linked into luac. This file also shows how to avoid linking the parser.


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.