There are lots of alternatives to Visual Studio, but first a quick clarification - Visual Studio is an IDE and it includes various compilers.
If you just need a compiler you can download the binaries from gcc.gnu.org and build on the command line.
If you want an IDE (but lighter than VS) I'd recommend CodeBlocks, which you can download from codeblocks.org.
Good luck!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…