[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Mike Pall's standalone FFI: a dream?
- From: steve donovan <steve.j.donovan@...>
- Date: Thu, 12 May 2011 11:09:50 +0200
On Thu, May 12, 2011 at 11:01 AM, KHMan <email@example.com> wrote:
> Eh, my memory cells is a failure, a C preprocessor in Lua is probably more
> like a 40KB stripped binary chunk. But it's under 20KB without the #if*
> conditional syntax and expression parsing. There is quite a lot to
Oh yes, that's the complicated bit!
Although does it make sense to expect a Lua FFI package to read
implementation C header files? They are clunky and often depend on
lots of little bits. Much better to have a tool to massage them and
extract exactly what one wants, and include that. Such a tool could
start out by using the standalone C preprocessor as a first step.
Then (for instance) the target system only needs foo, not foo-dev