#283 LTR compatible code generation for eLua

closed-accepted
None
5
2011-09-24
2011-09-12
raman
No

eLua extension for SWIG-Lua generates LTR (Lua tiny ram) compatible wrappers for smaller devices running embedded Lua.

Discussion

  • William Fulton

    William Fulton - 2011-09-13

    We reserve %insert("begin") for users only, so please use %insert("runtime") at the top of the lua.swg or luaruntim.swg.

    Are there any macros in elua or eluac that could instead be used to write code that will work for any of lua, elua or eluac? That way, the -lua and -eluac flags will not be necessary as the code will just work for any variant of lua. That is generally the approach we try and use in SWIG.

    Finally, did you check that the original lua test-suite works as before - this is essential? Do the test-suite work with elua and eluac?

    Please submit a new patch attachment to this ticket and I'll apply to trunk.

     
  • raman

    raman - 2011-09-14

    LTR compatible code generation for eLua

     
  • raman

    raman - 2011-09-14

    Hello William,

    I have used %runtime and changed the code in lua.swg.
    Please look for attachment.

    There are no macros in eLua that could be used for compatibility
    with SWIG Lua. eLua provides macros which are very specific to
    a few embedded architectures and memory optimization.

    Yes, certainly. I used the test-suite. The tests were successful.
    eLua was tested on TRICORE and on the Luminary Micro-
    LM3S8962. (ARM Cortex M3).

    Awaiting your response,

    Cheers,
    Raman

     
  • raman

    raman - 2011-09-14

    Moved code under %begin to %runtime in lua.swg

     
  • raman

    raman - 2011-09-15

    Updated patch for eLua; From rev:12807

     
  • raman

    raman - 2011-09-15
    • summary: LTR compatible code generationfor eLua --> LTR compatible code generation for eLua
     
  • William Fulton

    William Fulton - 2011-09-16

    Many thanks. I've committed this with a few tweaks to your last patch.

    Could you please enhance the documentation for this in Lua.html and provide it as an additional patch? I'll leave this ticket open until this has been done. Thanks.

     
  • William Fulton

    William Fulton - 2011-09-16
    • status: open --> open-accepted
     
  • raman

    raman - 2011-09-23

    Lua.html documentation update for eLua

     
  • raman

    raman - 2011-09-23

    Hello William,

    I have updated the documentation for eLua in Lua.html. Please look for the patch in the
    attachment.Please let me know if this works.

     
  • William Fulton

    William Fulton - 2011-09-24

    Great, thanks. Committed for swig-1.3.25.

     
  • William Fulton

    William Fulton - 2011-09-24
    • assigned_to: nobody --> wsfulton
    • status: open-accepted --> closed-accepted
     
  • William Fulton

    William Fulton - 2011-09-24

    Correction: committed for swig-2.0.5.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks