I would like to change the original Lua distribution to switch from
"int32" to "int64" for integer support in a totally backward
compatible way with existing Lua modules and tools.
What are the absolute minimal changes that need to be made to the
Lua core?
I'm not sure what you mean here. Lua does not use either "int32" or
"int64". If you mean the size of lua_Integer, that's configurable
by changing LUA_INTEGER in luaconf.h. But you'll not get binary
compatibility with existing Lua modules and tools; you'd have to
recompile them.