lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


lhf wrote:

> This rc uses the A-variants for the Windows functions in
> loadlib.c and provides a new etc/luavs.bat that builds luac.exe
> (contributed by Mike Pall). Please check that this script works;

The last line of the script (containing, simply, 'lauxlib.o') is
unexpected. Except for this, luavs.bat works well with the compiler
I use:

  Microsoft (R) 32-bit C/C++ Optimizing Compiler
    Version 12.00.8168 for 80x86.

> in particular, that it builds luac.exe statically, so that this
> works fine:

>  echo 'a=1' | luac.exe -l -p

Yup, with the extra '-' command switch to process stdin:

$ echo 'a=1' | src/luac.exe  -l -p -

main <stdin:0,0> (3 instructions, 12 bytes at 003248C0)
0+ params, 2 slots, 0 upvalues, 0 locals, 2 constants, 0 functions
        1       [1]     LOADK           0 -2    ; 1
        2       [1]     SETGLOBAL       0 -1    ; a
        3       [1]     RETURN          0 1

--
Kurt