lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> I assume this is to encourage the use of static linking?  I've seen some  
> references to increased performance by avoiding position-independent code.

Yes, it's to encourage linking Lua into your application. But please
note that even if Lua is static linked into the interpreter, the Lua
API is exposed to dynamic libraries (the incantation for that in Linux
with the GNU ld is -Wl,-E). So, we also encourage Lua to be extended with
dynamic libraries. You may not need this in your application.

There may be some small performance penalty in PIC code but that was not the
motivation for encouraging static linking.
--lhf