CSC448: Overview: Installing MinGW [14/133] Previous pageContentsNext page

The compiler produces assembly language output. An assembler is used to produce object files, and a linker is used to produce executable files.

It is also useful to have:

We use MinGW: Minimalist GNU For Windows : free; small download; fast; powerful but unfriendly debugger.

Why MinGW?

Install MinGW:

To verify the installation, try compiling and running a hello world C program:

gcc -o build\hello.exe src\hello.c
build\hello.exe
        

For example:

#include <stdio.h>
#include <stdlib.h>

int main (int argc, char *argv[])
{
  printf ("Hello World!\n");
  return 0;
}
        

Previous pageContentsNext page