The first step in the process of building a program is creating source code files with the code statements in header and/or source files. When you invoke the mpC compiler, for each mpC source file the compiler generates a file containing C code.

Compilation is performed on all builders of the current VPM (see Virtual Parallel Machines overview) and information about the compilation is displayed in the Output window, including warning and error messages. The Output window connects you to the line of code where the message is generated. To see the code that generates a diagnostic message double-click a diagnostic message in the Output window. In the Text Editor window a pointer shows the line, which generates the diagnostic message.

To find causes of the diagnostic messages you can use the mpC adviser. The mpC adviser allows you to see type and distribution of a statement or expression. Select a statement or expression value of which you want to see and click Advice from the Build menu. Information about the statement or expression is displayed in the Output window.

Before compilation you can change settings for the file you are going to compile (see Changing File Settings). To start compilation your mpC Workshop client must be connected to server (see Connecting to Server).

To start compilation

  1. Open the source file that you want to compile. If it is already open, click that window to move the focus there.

  2. - or -

    Select the file in the Workspace window.

  3. Click Compile filename from the Build menu.