lua-users home
lua-l archive

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


Le lun. 3 juin 2019 à 11:38, Francisco Olarte <folarte@peoplecall.com> a écrit :
On Mon, Jun 3, 2019 at 11:03 AM Philippe Verdy <verdy_p@wanadoo.fr> wrote:
That "unused slots" stuff is "compiler-fiction". They are complicated
beasts. And I insure you they do not work that way, make some programs
with some non trivial destructors, optimize, dissasemble and see.

So you have never looked at Java, and seen its compiled class format, where unused slots are explicitly encoded in the format, these slots are reused, just like C/C++ reuses the storage slots of registers.

This is absolutely not fiction, it is real, and in fact essential for performance. Otherwise out machines would never have enough hardware registers. Performance would be also very slow.