About Miracle C

Compiler Basics

Download & Setup

Using Miracle C

C programming resources

Guide to the Miracle C Compiler

Using Miracle C

Tutorial: Writing, Saving, Compiling, and Running the "Hello World" program


1 2

This simple program displays a jaunty line of text. It's a favorite "first day of class" warhorse, presenting the "main" function, comments,and the #include header.

1. Launch Miracle C.

2. Create a source file. You can do this in one of three ways:

  • Click the New File button
  • Pressing Ctrl + N
  • Click File and New

3. Type the following code into the text window:




void main()

printf("Hello, world!");

    Notice that the Miracle C text editor colors your code for you:

    • Red: constants, including hard-coded text strings
    • Blue: preprocessor directives, function types, and data types
    • Black: function names and separators
    • Green: comments


4. Save your file. You can do this in one of three ways:

  • Click the Save File button.
  • Press Ctrl + S.
  • Click File and Save .

5. Name your file,preserving the .c filename extension.

Miracle C will accept only file names of 8 characters or less, not including the .c extension.

View a printer-friendly version