Recently I have been refreshing my knowledge of C programming by reading C Primer Plus by Stephen Prata and trying out the code samples. Although I use Microsoft's Visual Studio for most stuff, it's a bit heavyweight for the sort of 10 line example programs in the book.
After searching for a leaner alternative, I found Pelles C which is a really great pure C development system for Windows.
As well as a compiler supporting the latest C11 standard, it has a nice simple IDE and a lightweight project manager. Also the help text is short and to the point and you don't need to scroll through multiple screens as you often do in Visual Studio/MSDN.
Get the 32-bit or 64-bit setup file from the download area of the website. The 32-bit version was only 9.6MB so pretty lean!
After installing, to create a project for a basic console program follow these steps:
1) Choose File -> New -> Project from the main menu
2) From the the New Project window, Empty projects section, choose Win32 Console program (EXE)
3) Type a name such as HelloWorld for the name of the new project
4) In Location use the .. button to choose the folder where your projects will be saved, eg C:\Source\CPrimer\. The name from step 3 will be added to give a project folder of C:\Source\CPrimer\HelloWorld
5) You should now have a screen with the empty project showing at the right side of the screen. From the menu choose File -> New -> Source code
6) Use File -> Save and name the file HelloWorld.c
7) A message box will ask if you want to add the file to the current project, so click the Yes button
8) Now you can add your code to the edit window
9) Use the items on the Project menu to build and execute your program
Any compiler errors will be displayed in a panel at the bottom of the window, and you can double-click on a message to go to the location of the error in the edit window.
