[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Precompile my Lua Library Code
- From: "Mark Edgar" <medgar123@...>
- Date: Sat, 28 Apr 2007 15:42:54 -0700
The interpreter (lua.exe) depends on lua.c and the Lua library. The
compiler (luac.exe) depends on luac.c, print.c, and a static build of
the Lua library. The INSTALL file in the Lua source distribution has
a very informative section at the end on "Building Lua on Windows and
other systems" which lists the files comprising the library, the
interpreter, and the compiler.
I'm not terribly sure, but I think one of the reasons that the
interpreter and the compiler are split up into separate executables is
that while luac.c depends on some internal Lua library calls, the
interpreter lua.c depends only on the published Lua C API and
therefore doubles as an example program for using the Lua from C.