All Projects → RandyGaul → C-Hotloading

RandyGaul / C-Hotloading

Licence: other
Example of MSVC makefile project for hotloading C with intellisense/debugger compatability

Programming Languages

C++
36643 projects - #6 most used programming language
c
50402 projects - #5 most used programming language
Batchfile
5799 projects

C Hotloading

Quick example of compiling a "game's" main loop into a DLL with the ability to reload the DLL at run-time whenever the DLL has changed. A batch file is used to allow compilation while the debugger is attached to the main executable. Idea taken from the Handmade Hero videos + forums.

I've included notes on how to add a hotkey (I used alt + f5) to recompile while running the executable from within Visual Studio, even while the debugger is attached.

Windows only demo. Batch file setup for MSVC 2013 (v12); easily modifiable for other version.

Instructions

  • Open solution
  • f5
  • Edit game.cpp
  • Alt + f5 (after setting up the hotkey, see notes folder)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].