Log in

No account? Create an account

Previous Entry | Next Entry

Executable versus Script

I recently found that the compiled C++ version of my Snake game is significantly smaller than the Lua script version that runs in ConsoleLua. The executable is around 5KB while the script is around 8KB, and ConsoleLua is over 100KB (80% of which is Lua itself). That's... somewhat disheartening.

To add insult to injury, the Snake executable is statically linked to a compact version of the C runtime (called wcrt) so it doesn't even need the Visual C++ 2013 redistributable package.