<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18813"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=051581115-02082009><FONT color=#0000ff><FONT 
size=2 face=Arial>The other big issue to consider here is the memory 
footprint.  Maybe try asking here: </FONT><SPAN lang=EN>
<P></SPAN><A 
href="http://lists.midnightryder.com/listinfo.cgi/sweng-gamedev-midnightryder.com"><U><FONT 
color=#0000ff><FONT color=#0000ff><SPAN lang=EN><FONT size=2 
face=Arial>http://lists.midnightryder.com/listinfo.cgi/sweng-gamedev-midnightryder.com</FONT></U></FONT></FONT></SPAN></A></P>
<P><SPAN class=051581115-02082009><FONT size=2 face=Arial>Add add more details 
of exactly what you wish to do.</FONT></SPAN></P>
<P><FONT size=2 face=Arial></FONT> </P></FONT></SPAN></DIV><BR>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> llvmdev-bounces@cs.uiuc.edu 
[mailto:llvmdev-bounces@cs.uiuc.edu] <B>On Behalf Of </B>Tres 
Walsh<BR><B>Sent:</B> Sunday, August 02, 2009 11:30 AM<BR><B>To:</B> LLVM 
Developers Mailing List<BR><B>Subject:</B> Re: [LLVMdev] Couple newbie questions 
:|<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>Thanks for the response :D<BR></DIV>
<DIV></DIV>
<DIV>I have used Python and Lua before. I'd love to use the syntax of lua with 
the object oriented ness of python, and I thought LLVM would be a way to do 
that.</DIV>
<DIV></DIV>
<DIV>Again your help is appreciated.</DIV>
<DIV></DIV>
<DIV class=gmail_quote>On Sun, Aug 2, 2009 at 12:25 AM, Eli Friedman <SPAN 
dir=ltr><<A 
href="mailto:eli.friedman@gmail.com">eli.friedman@gmail.com</A>></SPAN> 
wrote:<BR>
<BLOCKQUOTE 
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
class=gmail_quote>
  <DIV class=im>On Sat, Aug 1, 2009 at 11:43 PM, Tres Walsh<<A 
  href="mailto:tres.walsh@gmail.com">tres.walsh@gmail.com</A>> wrote:<BR>> 
  Hello there!<BR>> I'm an absolute newb at LLVM,and I was hoping someone 
  could answer a few of<BR>> my questions.<BR>> I'm currently working on a 
  game engine. As part of it's design, I need a<BR>> virtual machine for 
  scripts. Is LLVM suited for this at all? Such as<BR>> registering external 
  functions that can be called from the scripts?<BR><BR></DIV>Possibly... but 
  you're sort of making the decision at the wrong level;<BR>LLVM is really a 
  low-level solution intended for implementing a<BR>language.  If you need 
  scripts, you probably want a scripting language<BR>of some sort, and if you're 
  working on a game engine, you probably<BR>don't want to write your own 
  scripting language, since it's a lot of<BR>work with no obvious benefit. 
   There are numerous existing open-source<BR>solutions for this; I think 
  Python and Lua are popular choices for<BR>that sort of thing.<BR>
  <DIV class=im><BR>> And if<BR>> this did work, it wouldn't really matter 
  what language the original scripts<BR>> were written in, since they all get 
  compiled down to the LLVM bytecode<BR>> correct?<BR><BR></DIV>You can't 
  really just compile a scripting language down to LLVM<BR>bitcode and expect 
  good performance; you really need some glue code to<BR>mix interpretation, 
  compilation, and possibly recompilation at runtime<BR>to get good performance. 
   And if the scripts in question aren't<BR>performance-sensitive, there's 
  not really much point to using LLVM.<BR>It strongly depends on what you're 
  doing.<BR>
  <DIV class=im><BR>> As of now what platforms does LLVM not compile on? Is 
  it good for embedded<BR>> work?<BR><BR></DIV>In terms of platforms, it'll 
  probably work for everything you might<BR>care about; see <A 
  href="http://llvm.org/docs/ReleaseNotes-2.6.html#portability" 
  target=_blank>http://llvm.org/docs/ReleaseNotes-2.6.html#portability</A><BR>(although 
  note that only some of those platforms have working JIT<BR>support).  As 
  for embedded work, it depends on what you mean by<BR>embedded; if 10MB code 
  footprint sounds way too large, LLVM is<BR>probably not the way to 
  go.<BR><BR>You might want to take a look at <A 
  href="http://llvm.org/docs/tutorial/" 
  target=_blank>http://llvm.org/docs/tutorial/</A> to get<BR>a better idea of 
  what LLVM can 
  do.<BR><BR>-Eli<BR>_______________________________________________<BR>LLVM 
  Developers mailing list<BR><A 
  href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</A>       
    <A href="http://llvm.cs.uiuc.edu" 
  target=_blank>http://llvm.cs.uiuc.edu</A><BR><A 
  href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" 
  target=_blank>http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</A><BR></BLOCKQUOTE></DIV><BR><BR 
clear=all><BR>-- <BR><A 
href="http://treswalsh.com">http://treswalsh.com</A><BR></BODY></HTML>