[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: LuaBinaries Why so many Win32 bindings
- From: "steve donovan" <steve.j.donovan@...>
- Date: Wed, 23 Jul 2008 08:04:53 +0200
On Tue, Jul 22, 2008 at 4:39 PM, Jeff Wise <email@example.com> wrote:
> 1. Distribute object code which is linked on install instead of executables.
> The install process fixes the problem.
That seems to be a favourite tactic of people distributing binary
drivers on Linux, in the never-ending battle between the pragmatists
and the purists.
But, you need to assume there _is_ a linker, which is not common on Windows!
> 2. In the routine, put a compile-time switch which calls an assembler
> language interface to acquire/return the storage (or whatever library
> function is generating the problem).
Here's a naive idea: how about linking the extensions and Lua against
a proxy runtime, which just forwards calls. Then only the proxy needs
to be rebuilt for all the various actual runtime possibilities. Naive,
because runtimes do subtle stuff....