|
Andy Stark wrote:
Lua list <lua@bazar2.conectiva.com.br> on at wrote:You could reorder the VM instructions in lopcodes.h, but then you need to fix lopcodes.c.The lopcodes.h and lopcodes.c source files are quite short and have a fairly simple structure. Perhaps a future distribution of Lua could include a Lua script that generates these two files and has an option to permute the order of opcodes using a seed specified by the user. For simplicity you could use [snip]
Once someone finds the main VM function using a debugger, the game of hide-and-seek is essentially over. If the Intellectual Property is really, really valuable, legal action is probably the only way to stop commercial duplication of your work. Reverse engineering is hard to stop. What method you choose depends very much on the "whole picture".
Having the opcode information in a Lua table in the script might be useful for other purposes too, for documentation or writing disassemblers, etc.
But since the internals of Lua change from version to version, keeping in touch with the internals is going to be a little masochistic. :-)
-- Cheers, Kein-Hong Man (esq.) Kuala Lumpur, Malaysia