Discussion:
how to use luajit to compile lua code to windows executable?
Amir Ramezani
2014-05-22 11:22:11 UTC
Permalink
hi all,
i'm developing a game engine using lua and with luajit!
now the question is, how can i program a compiler to compile my
scripts into executables?
i dont want to use luajit frontend!
i want to create another for my game engine!
thanks in advance
Pierre-Yves Gérardy
2014-05-22 11:40:52 UTC
Permalink
On Thu, May 22, 2014 at 1:22 PM, Amir Ramezani
Post by Amir Ramezani
hi all,
i'm developing a game engine using lua and with luajit!
now the question is, how can i program a compiler to compile my
scripts into executables?
i dont want to use luajit frontend!
i want to create another for my game engine!
thanks in advance
You can't produce static libraries out of LuaJIT code. The compiler is
dynamic, and produces specialized code for hot code paths on the fly
while leaving seldom used parts of the code interpreted. If code that
was previously cold warms up it will then be compiled.

If you want to obfuscate your code, you can compile it to bytecode.
LuaJIT provides several options to wrap it so that it is ready for
consumption by C programs (that embed LuaJIT).

See the -b option here: http://luajit.org/running.html


—Pierre-Yves
Amir Ramezani
2014-05-22 12:28:12 UTC
Permalink
what can i do to compile it to an executable?
i dont want to produce C object code!
i want to turn the script into executable!
without any C Compiler!
Post by Pierre-Yves Gérardy
On Thu, May 22, 2014 at 1:22 PM, Amir Ramezani
Post by Amir Ramezani
hi all,
i'm developing a game engine using lua and with luajit!
now the question is, how can i program a compiler to compile my
scripts into executables?
i dont want to use luajit frontend!
i want to create another for my game engine!
thanks in advance
You can't produce static libraries out of LuaJIT code. The compiler is
dynamic, and produces specialized code for hot code paths on the fly
while leaving seldom used parts of the code interpreted. If code that
was previously cold warms up it will then be compiled.
If you want to obfuscate your code, you can compile it to bytecode.
LuaJIT provides several options to wrap it so that it is ready for
consumption by C programs (that embed LuaJIT).
See the -b option here: http://luajit.org/running.html
—Pierre-Yves
Daniel Kolesa
2014-05-22 12:30:58 UTC
Permalink
You can't.
Post by Amir Ramezani
what can i do to compile it to an executable?
i dont want to produce C object code!
i want to turn the script into executable!
without any C Compiler!
Post by Pierre-Yves Gérardy
On Thu, May 22, 2014 at 1:22 PM, Amir Ramezani
Post by Amir Ramezani
hi all,
i'm developing a game engine using lua and with luajit!
now the question is, how can i program a compiler to compile my
scripts into executables?
i dont want to use luajit frontend!
i want to create another for my game engine!
thanks in advance
You can't produce static libraries out of LuaJIT code. The compiler is
dynamic, and produces specialized code for hot code paths on the fly
while leaving seldom used parts of the code interpreted. If code that
was previously cold warms up it will then be compiled.
If you want to obfuscate your code, you can compile it to bytecode.
LuaJIT provides several options to wrap it so that it is ready for
consumption by C programs (that embed LuaJIT).
See the -b option here: http://luajit.org/running.html
—Pierre-Yves
Aleksandar Kordic
2014-05-22 12:33:40 UTC
Permalink
You need to learn about embedding Lua in C program and then apply that to
LuaJIT.


On Thu, May 22, 2014 at 2:28 PM, Amir Ramezani
Post by Amir Ramezani
what can i do to compile it to an executable?
i dont want to produce C object code!
i want to turn the script into executable!
without any C Compiler!
Post by Pierre-Yves Gérardy
On Thu, May 22, 2014 at 1:22 PM, Amir Ramezani
Post by Amir Ramezani
hi all,
i'm developing a game engine using lua and with luajit!
now the question is, how can i program a compiler to compile my
scripts into executables?
i dont want to use luajit frontend!
i want to create another for my game engine!
thanks in advance
You can't produce static libraries out of LuaJIT code. The compiler is
dynamic, and produces specialized code for hot code paths on the fly
while leaving seldom used parts of the code interpreted. If code that
was previously cold warms up it will then be compiled.
If you want to obfuscate your code, you can compile it to bytecode.
LuaJIT provides several options to wrap it so that it is ready for
consumption by C programs (that embed LuaJIT).
See the -b option here: http://luajit.org/running.html
—Pierre-Yves
Amir Ramezani
2014-05-22 13:16:58 UTC
Permalink
so, what do you recommend?
what do i have to do in order to compile that into executable?
what must be done?
Post by Aleksandar Kordic
You need to learn about embedding Lua in C program and then apply that to
LuaJIT.
On Thu, May 22, 2014 at 2:28 PM, Amir Ramezani
Post by Amir Ramezani
what can i do to compile it to an executable?
i dont want to produce C object code!
i want to turn the script into executable!
without any C Compiler!
Post by Pierre-Yves Gérardy
On Thu, May 22, 2014 at 1:22 PM, Amir Ramezani
Post by Amir Ramezani
hi all,
i'm developing a game engine using lua and with luajit!
now the question is, how can i program a compiler to compile my
scripts into executables?
i dont want to use luajit frontend!
i want to create another for my game engine!
thanks in advance
You can't produce static libraries out of LuaJIT code. The compiler is
dynamic, and produces specialized code for hot code paths on the fly
while leaving seldom used parts of the code interpreted. If code that
was previously cold warms up it will then be compiled.
If you want to obfuscate your code, you can compile it to bytecode.
LuaJIT provides several options to wrap it so that it is ready for
consumption by C programs (that embed LuaJIT).
See the -b option here: http://luajit.org/running.html
—Pierre-Yves
"Sean Dunn" (Redacted sender "seanedunn-/E1597aS9LQAvxtiuMwx3w@public.gmane.org" for DMARC)
2014-05-22 14:20:09 UTC
Permalink
Amir, I'm afraid LuaJIT isn't what you want. While not as fast (as a whole) as LuaJIT, there are options for using LLVM to compile Lua to an executable. It's not really a topic for discussion on this list, but google LLVM and Lua and you'll find multiple pages on the topic. To get you started, here's a random 1.5 year-old discussion on the merits of Lua and LLVM vs LuaJIT:

http://lua-users.org/lists/lua-l/2013-01/msg00554.html

 
--
Post by Amir Ramezani
so, what do you recommend?
what do i have to do in order to compile that into executable?
what must be done?
Post by Aleksandar Kordic
You need to learn about embedding Lua in C program and then apply that to
LuaJIT.
On Thu, May 22, 2014 at 2:28 PM, Amir Ramezani
Post by Amir Ramezani
what can i do to compile it to an executable?
i dont want to produce C object code!
i want to turn the script into executable!
without any C Compiler!
Post by Pierre-Yves Gérardy
On Thu, May 22, 2014 at 1:22 PM, Amir Ramezani
Post by Amir Ramezani
hi all,
i'm developing a game engine using lua and with luajit!
now the question is, how can i program a compiler to compile my
scripts into executables?
i dont want to use luajit frontend!
i want to create another for my game engine!
thanks in advance
You can't produce static libraries out of LuaJIT code. The compiler is
dynamic, and produces specialized code for hot code paths on the fly
while leaving seldom used parts of the code interpreted. If code that
was previously cold warms up it will then be compiled.
If you want to obfuscate your code, you can compile it to bytecode.
LuaJIT provides several options to wrap it so that it is ready for
consumption by C programs (that embed LuaJIT).
See the -b option here: http://luajit.org/running.html
—Pierre-Yves
Coda Highland
2014-05-22 14:22:47 UTC
Permalink
Post by "Sean Dunn" (Redacted sender "seanedunn-/***@public.gmane.org" for DMARC)
Amir, I'm afraid LuaJIT isn't what you want. While not as fast (as a whole)
as LuaJIT, there are options for using LLVM to compile Lua to an executable.
It's not really a topic for discussion on this list, but google LLVM and Lua
and you'll find multiple pages on the topic. To get you started, here's a
http://lua-users.org/lists/lua-l/2013-01/msg00554.html
That's a little overkill, when all that's actually necessary is
something like srlua that can create a binary with the LuaJIT
interpreter and all of the Lua source files packaged together.

/s/ Adam
Kaj Eijlers
2014-05-22 14:28:09 UTC
Permalink
Post by "Sean Dunn" (Redacted sender "seanedunn-/***@public.gmane.org" for DMARC)
Post by "Sean Dunn" (Redacted sender "seanedunn-/***@public.gmane.org" for DMARC)
Amir, I'm afraid LuaJIT isn't what you want. While not as fast (as a
whole)
Post by "Sean Dunn" (Redacted sender "seanedunn-/***@public.gmane.org" for DMARC)
as LuaJIT, there are options for using LLVM to compile Lua to an
executable.
Post by "Sean Dunn" (Redacted sender "seanedunn-/***@public.gmane.org" for DMARC)
It's not really a topic for discussion on this list, but google LLVM and
Lua
Post by "Sean Dunn" (Redacted sender "seanedunn-/***@public.gmane.org" for DMARC)
and you'll find multiple pages on the topic. To get you started, here's a
http://lua-users.org/lists/lua-l/2013-01/msg00554.html
That's a little overkill, when all that's actually necessary is
something like srlua that can create a binary with the LuaJIT
interpreter and all of the Lua source files packaged together.
/s/ Adam
Well, in all fairness, it's quite unclear what Amir really wants -
statically compiled or single file deploy. While that is unclear all
answers are valid and void.

Kaj
Amir Ramezani
2014-05-22 14:59:31 UTC
Permalink
ok, i want something that helps me to produce executables with my engine!
how can i use srlua with luajit together and include them in my engine?
i want something that helps me to compile lua scripts into windows
stand-alone .exe files and use them!
i want to use luajit to run my code faster!
but the question is, how can i use srlua and luajit together?
how can i include them in my engine?
Post by Kaj Eijlers
Post by "Sean Dunn" (Redacted sender "seanedunn-/***@public.gmane.org" for DMARC)
Post by "Sean Dunn" (Redacted sender "seanedunn-/***@public.gmane.org" for DMARC)
Amir, I'm afraid LuaJIT isn't what you want. While not as fast (as a
whole)
Post by "Sean Dunn" (Redacted sender "seanedunn-/***@public.gmane.org" for DMARC)
as LuaJIT, there are options for using LLVM to compile Lua to an
executable.
Post by "Sean Dunn" (Redacted sender "seanedunn-/***@public.gmane.org" for DMARC)
It's not really a topic for discussion on this list, but google LLVM and
Lua
Post by "Sean Dunn" (Redacted sender "seanedunn-/***@public.gmane.org" for DMARC)
and you'll find multiple pages on the topic. To get you started, here's a
http://lua-users.org/lists/lua-l/2013-01/msg00554.html
That's a little overkill, when all that's actually necessary is
something like srlua that can create a binary with the LuaJIT
interpreter and all of the Lua source files packaged together.
/s/ Adam
Well, in all fairness, it's quite unclear what Amir really wants -
statically compiled or single file deploy. While that is unclear all
answers are valid and void.
Kaj
Alex
2014-05-22 15:09:52 UTC
Permalink
Guys, he just wants a C program that starts up his Lua code, not to
precompile traces or anything like that.

Here's a simple way of doing it that I use with my demos. First, download
the C file from theis gist:
https://gist.github.com/ColonelThirtyTwo/1f3842252f3d409bf5e1 . This
creates a lua_State and runs your code.

Then, run "luajit -b" on all of your files to convert them as "<name>.c"
(see the Running LuaJIT docs for more info on how to do this). Compile each
bytecode C file, the LuaJIT runner from the gist, then link them together,
and you should have an executable that you can simply double-click to run
your Lua code.
Post by Amir Ramezani
ok, i want something that helps me to produce executables with my engine!
how can i use srlua with luajit together and include them in my engine?
i want something that helps me to compile lua scripts into windows
stand-alone .exe files and use them!
i want to use luajit to run my code faster!
but the question is, how can i use srlua and luajit together?
how can i include them in my engine?
Post by Kaj Eijlers
Post by "Sean Dunn" (Redacted sender "seanedunn-/***@public.gmane.org" for DMARC)
Post by "Sean Dunn" (Redacted sender "seanedunn-/***@public.gmane.org" for DMARC)
Amir, I'm afraid LuaJIT isn't what you want. While not as fast (as a
whole)
Post by "Sean Dunn" (Redacted sender "seanedunn-/***@public.gmane.org" for DMARC)
as LuaJIT, there are options for using LLVM to compile Lua to an
executable.
Post by "Sean Dunn" (Redacted sender "seanedunn-/***@public.gmane.org" for DMARC)
It's not really a topic for discussion on this list, but google LLVM and
Lua
Post by "Sean Dunn" (Redacted sender "seanedunn-/***@public.gmane.org" for DMARC)
and you'll find multiple pages on the topic. To get you started,
here's
Post by Kaj Eijlers
Post by "Sean Dunn" (Redacted sender "seanedunn-/***@public.gmane.org" for DMARC)
Post by "Sean Dunn" (Redacted sender "seanedunn-/***@public.gmane.org" for DMARC)
a
random 1.5 year-old discussion on the merits of Lua and LLVM vs
http://lua-users.org/lists/lua-l/2013-01/msg00554.html
That's a little overkill, when all that's actually necessary is
something like srlua that can create a binary with the LuaJIT
interpreter and all of the Lua source files packaged together.
/s/ Adam
Well, in all fairness, it's quite unclear what Amir really wants -
statically compiled or single file deploy. While that is unclear all
answers are valid and void.
Kaj
--
Sincerely,
Alex Parrill
Amir Ramezani
2014-05-22 15:37:05 UTC
Permalink
not,
i think i havent mention my mean correctly!
i want something to help me produce executable with my engine!
i dont want to convert lua code to C, or everything!
i want to write a game engine that compiles LUA code into exe files!
just that!
i dont want to convert the code to C, i dont want to execute my code
with another application!
i want my engine to be abale to compile the script into executable!
how can i do that?
Post by Alex
Guys, he just wants a C program that starts up his Lua code, not to
precompile traces or anything like that.
Here's a simple way of doing it that I use with my demos. First, download
https://gist.github.com/ColonelThirtyTwo/1f3842252f3d409bf5e1 . This
creates a lua_State and runs your code.
Then, run "luajit -b" on all of your files to convert them as "<name>.c"
(see the Running LuaJIT docs for more info on how to do this). Compile each
bytecode C file, the LuaJIT runner from the gist, then link them together,
and you should have an executable that you can simply double-click to run
your Lua code.
On Thu, May 22, 2014 at 10:59 AM, Amir Ramezani
Post by Amir Ramezani
ok, i want something that helps me to produce executables with my engine!
how can i use srlua with luajit together and include them in my engine?
i want something that helps me to compile lua scripts into windows
stand-alone .exe files and use them!
i want to use luajit to run my code faster!
but the question is, how can i use srlua and luajit together?
how can i include them in my engine?
Post by Kaj Eijlers
On Thu, May 22, 2014 at 7:20 AM, Sean Dunn
Post by "Sean Dunn" (Redacted sender "seanedunn-/***@public.gmane.org" for DMARC)
Amir, I'm afraid LuaJIT isn't what you want. While not as fast (as a
whole)
Post by "Sean Dunn" (Redacted sender "seanedunn-/***@public.gmane.org" for DMARC)
as LuaJIT, there are options for using LLVM to compile Lua to an
executable.
Post by "Sean Dunn" (Redacted sender "seanedunn-/***@public.gmane.org" for DMARC)
It's not really a topic for discussion on this list, but google LLVM and
Lua
Post by "Sean Dunn" (Redacted sender "seanedunn-/***@public.gmane.org" for DMARC)
and you'll find multiple pages on the topic. To get you started,
here's
Post by Kaj Eijlers
Post by "Sean Dunn" (Redacted sender "seanedunn-/***@public.gmane.org" for DMARC)
a
random 1.5 year-old discussion on the merits of Lua and LLVM vs
http://lua-users.org/lists/lua-l/2013-01/msg00554.html
That's a little overkill, when all that's actually necessary is
something like srlua that can create a binary with the LuaJIT
interpreter and all of the Lua source files packaged together.
/s/ Adam
Well, in all fairness, it's quite unclear what Amir really wants -
statically compiled or single file deploy. While that is unclear all
answers are valid and void.
Kaj
--
Sincerely,
Alex Parrill
Coda Highland
2014-05-22 15:40:55 UTC
Permalink
What he described will do exactly that.

/s/ Adam

On Thu, May 22, 2014 at 8:37 AM, Amir Ramezani
Post by Amir Ramezani
not,
i think i havent mention my mean correctly!
i want something to help me produce executable with my engine!
i dont want to convert lua code to C, or everything!
i want to write a game engine that compiles LUA code into exe files!
just that!
i dont want to convert the code to C, i dont want to execute my code
with another application!
i want my engine to be abale to compile the script into executable!
how can i do that?
Post by Alex
Guys, he just wants a C program that starts up his Lua code, not to
precompile traces or anything like that.
Here's a simple way of doing it that I use with my demos. First, download
https://gist.github.com/ColonelThirtyTwo/1f3842252f3d409bf5e1 . This
creates a lua_State and runs your code.
Then, run "luajit -b" on all of your files to convert them as "<name>.c"
(see the Running LuaJIT docs for more info on how to do this). Compile each
bytecode C file, the LuaJIT runner from the gist, then link them together,
and you should have an executable that you can simply double-click to run
your Lua code.
On Thu, May 22, 2014 at 10:59 AM, Amir Ramezani
Post by Amir Ramezani
ok, i want something that helps me to produce executables with my engine!
how can i use srlua with luajit together and include them in my engine?
i want something that helps me to compile lua scripts into windows
stand-alone .exe files and use them!
i want to use luajit to run my code faster!
but the question is, how can i use srlua and luajit together?
how can i include them in my engine?
Post by Kaj Eijlers
On Thu, May 22, 2014 at 7:20 AM, Sean Dunn
Post by "Sean Dunn" (Redacted sender "seanedunn-/***@public.gmane.org" for DMARC)
Amir, I'm afraid LuaJIT isn't what you want. While not as fast (as a
whole)
Post by "Sean Dunn" (Redacted sender "seanedunn-/***@public.gmane.org" for DMARC)
as LuaJIT, there are options for using LLVM to compile Lua to an
executable.
Post by "Sean Dunn" (Redacted sender "seanedunn-/***@public.gmane.org" for DMARC)
It's not really a topic for discussion on this list, but google LLVM and
Lua
Post by "Sean Dunn" (Redacted sender "seanedunn-/***@public.gmane.org" for DMARC)
and you'll find multiple pages on the topic. To get you started,
here's
Post by Kaj Eijlers
Post by "Sean Dunn" (Redacted sender "seanedunn-/***@public.gmane.org" for DMARC)
a
random 1.5 year-old discussion on the merits of Lua and LLVM vs
http://lua-users.org/lists/lua-l/2013-01/msg00554.html
That's a little overkill, when all that's actually necessary is
something like srlua that can create a binary with the LuaJIT
interpreter and all of the Lua source files packaged together.
/s/ Adam
Well, in all fairness, it's quite unclear what Amir really wants -
statically compiled or single file deploy. While that is unclear all
answers are valid and void.
Kaj
--
Sincerely,
Alex Parrill
Kaj Eijlers
2014-05-22 16:03:03 UTC
Permalink
Post by Coda Highland
What he described will do exactly that.
/s/ Adam
On Thu, May 22, 2014 at 8:37 AM, Amir Ramezani
Post by Amir Ramezani
not,
i think i havent mention my mean correctly!
i want something to help me produce executable with my engine!
i dont want to convert lua code to C, or everything!
i want to write a game engine that compiles LUA code into exe files!
just that!
i dont want to convert the code to C, i dont want to execute my code
with another application!
i want my engine to be abale to compile the script into executable!
how can i do that?
Not sure it'll do what he wants.

Amir,

Do you want your engine to produce stand alone executables with lua scripts
and all embedded? Like a game-maker that creates executables, without
having to recompile anything for that creation?

I don't know if there's an out of the box solution for that - you'll
basically need an empty version of your engine without the game scripts and
then a way to glue that engine plus scripts together (there are many ways
to do this, I just don't know if there's any off the shelf solutions for
it).

The problem is there's no concept of compiling Lua to executables (except
LLVM-Lua which seems more than you want), so the question is (to me) still
unclear)

Kaj
Coda Highland
2014-05-22 16:13:23 UTC
Permalink
Post by Kaj Eijlers
Not sure it'll do what he wants.
Post by Amir Ramezani
i want my engine to be abale to compile the script into executable!
how can i do that?
The described steps for outputting C files will do exactly this: It
will compile the script into an executable, still using the LuaJIT
interpreter and JIT.

(Amir: This doesn't convert the scripts to C. It simply expresses the
scripts in the form of a C array that you can embed into a C project.
The wrapper code in the instructions then loads the scripts out of
those files and executes them.)

/s/ Adam
Zarko Popovski
2014-05-22 16:52:06 UTC
Permalink
Coda Highland already mention srlua, i'll mention also but from your game
engine persepctive this time. If you want from your game engine to produce
exe file like bundle with your engine, Lua / LuaJIT interpreter and scripts
then use srlua in your game engine, i think that srlua is open source, so
you can produce .exe bundles directly from your engine.

Best Regards
Zarko Popovski
Post by Coda Highland
Post by Kaj Eijlers
Not sure it'll do what he wants.
Post by Amir Ramezani
i want my engine to be abale to compile the script into executable!
how can i do that?
The described steps for outputting C files will do exactly this: It
will compile the script into an executable, still using the LuaJIT
interpreter and JIT.
(Amir: This doesn't convert the scripts to C. It simply expresses the
scripts in the form of a C array that you can embed into a C project.
The wrapper code in the instructions then loads the scripts out of
those files and executes them.)
/s/ Adam
Szabó Antal
2014-05-22 16:03:38 UTC
Permalink
If you want to get a good answer, please ask a specific question,
rather than repeating the same thing over and over again. You got many
answers on how you can achieve what you want. You can't directly
compile Lua to an executable however many times you ask; Lua doesn't
work like that.

Also, please stop using exclamation marks after all of your sentences.


Antal Szabó
Post by Amir Ramezani
not,
i think i havent mention my mean correctly!
i want something to help me produce executable with my engine!
i dont want to convert lua code to C, or everything!
i want to write a game engine that compiles LUA code into exe files!
just that!
i dont want to convert the code to C, i dont want to execute my code
with another application!
i want my engine to be abale to compile the script into executable!
how can i do that?
Post by Alex
Guys, he just wants a C program that starts up his Lua code, not to
precompile traces or anything like that.
Here's a simple way of doing it that I use with my demos. First, download
https://gist.github.com/ColonelThirtyTwo/1f3842252f3d409bf5e1 . This
creates a lua_State and runs your code.
Then, run "luajit -b" on all of your files to convert them as "<name>.c"
(see the Running LuaJIT docs for more info on how to do this). Compile each
bytecode C file, the LuaJIT runner from the gist, then link them together,
and you should have an executable that you can simply double-click to run
your Lua code.
On Thu, May 22, 2014 at 10:59 AM, Amir Ramezani
Post by Amir Ramezani
ok, i want something that helps me to produce executables with my engine!
how can i use srlua with luajit together and include them in my engine?
i want something that helps me to compile lua scripts into windows
stand-alone .exe files and use them!
i want to use luajit to run my code faster!
but the question is, how can i use srlua and luajit together?
how can i include them in my engine?
Post by Kaj Eijlers
On Thu, May 22, 2014 at 7:20 AM, Sean Dunn
Post by "Sean Dunn" (Redacted sender "seanedunn-/***@public.gmane.org" for DMARC)
Amir, I'm afraid LuaJIT isn't what you want. While not as fast (as a
whole)
Post by "Sean Dunn" (Redacted sender "seanedunn-/***@public.gmane.org" for DMARC)
as LuaJIT, there are options for using LLVM to compile Lua to an
executable.
Post by "Sean Dunn" (Redacted sender "seanedunn-/***@public.gmane.org" for DMARC)
It's not really a topic for discussion on this list, but google LLVM and
Lua
Post by "Sean Dunn" (Redacted sender "seanedunn-/***@public.gmane.org" for DMARC)
and you'll find multiple pages on the topic. To get you started,
here's
Post by Kaj Eijlers
Post by "Sean Dunn" (Redacted sender "seanedunn-/***@public.gmane.org" for DMARC)
a
random 1.5 year-old discussion on the merits of Lua and LLVM vs
http://lua-users.org/lists/lua-l/2013-01/msg00554.html
That's a little overkill, when all that's actually necessary is
something like srlua that can create a binary with the LuaJIT
interpreter and all of the Lua source files packaged together.
/s/ Adam
Well, in all fairness, it's quite unclear what Amir really wants -
statically compiled or single file deploy. While that is unclear all
answers are valid and void.
Kaj
--
Sincerely,
Alex Parrill
Elias Hogstvedt
2014-05-23 00:24:06 UTC
Permalink
Maybe look at how love2d does this.
hi all,
i'm developing a game engine using lua and with luajit!
now the question is, how can i program a compiler to compile my
scripts into executables?
i dont want to use luajit frontend!
i want to create another for my game engine!
thanks in advance
Amir Ramezani
2014-05-23 11:00:59 UTC
Permalink
hi all, thanks for all of your replys
i've got llvm_lua that uses luajit, and i think it can help me
thanks in advance for your replys
Post by Elias Hogstvedt
Maybe look at how love2d does this.
hi all,
i'm developing a game engine using lua and with luajit!
now the question is, how can i program a compiler to compile my
scripts into executables?
i dont want to use luajit frontend!
i want to create another for my game engine!
thanks in advance
Tom Yaxley
2014-05-23 12:04:54 UTC
Permalink
llvm_lua and luajit are separate projects (llvm_lua does not use luajit
afaik). Alex's post is what you are after if you want to use luajit :)
Post by Amir Ramezani
hi all, thanks for all of your replys
i've got llvm_lua that uses luajit, and i think it can help me
thanks in advance for your replys
Post by Elias Hogstvedt
Maybe look at how love2d does this.
hi all,
i'm developing a game engine using lua and with luajit!
now the question is, how can i program a compiler to compile my
scripts into executables?
i dont want to use luajit frontend!
i want to create another for my game engine!
thanks in advance
Amir Ramezani
2014-05-23 13:13:07 UTC
Permalink
well, i havent read it's source code!
thanks!
Post by Tom Yaxley
llvm_lua and luajit are separate projects (llvm_lua does not use luajit
afaik). Alex's post is what you are after if you want to use luajit :)
Post by Amir Ramezani
hi all, thanks for all of your replys
i've got llvm_lua that uses luajit, and i think it can help me
thanks in advance for your replys
Post by Elias Hogstvedt
Maybe look at how love2d does this.
hi all,
i'm developing a game engine using lua and with luajit!
now the question is, how can i program a compiler to compile my
scripts into executables?
i dont want to use luajit frontend!
i want to create another for my game engine!
thanks in advance
Loading...