Ultraken (ultraken) wrote,
Ultraken
ultraken

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.

Tags: programming
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments