How does a Program that is already compiled create standalone .exe files without an apparent compiler? Example game making software like GameMaker that lets you create a game, add all the resources, images, scripts etc, and then lets you compile it into an exe file?
One of my theories is that there is already an .exe which is actually a game player and Gamemaker simply copies that exe and then renames it to the game name you've given, and your scripts are converted into opcodes and saved in a separate file, then this renamed .exe accesses the file and executes the opcodes like a virtual machine to play your game.
Another theory would be that the scripts are converted to c++ code by the gamemaker, which the gamemaker then calls the c++ compiler to automatically compile the code into an executable, because I know I can compile some c++ code using windows command line meaning that there is a c++ compiler already included hidden somewhere in windows.