Intel® FPGA SDK for OpenCL™ Pro Edition: Programming Guide

ID 683846
Date 10/04/2021

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents Reviewing the Code and Building the Project

Perform these steps to review your host code and build your project:

  1. From the Project Explorer view, double-click the .c file created for your project (for example, hostcode.c).
    You can find the .c file within the project src folder. It opens in a default editor and contains C++ template host code for the Hello World example project you selected earlier. In addition, the Outline view is also populated with objects created from your code.
    Figure 24. Reviewing Code in the Project Explorer
    Tip: You can specify a different editor and add or modify existing code templates by modifying your preferences in Window > Preferences.
  2. Optional: Type additional code in this file and save the changes either by clicking File > Save or pressing CTRL+S keys combination.
  3. Build your project using one of the following options:
    • Press CTRL+B keys combination.
    • Select the project in the Project Explorer view and navigate to Project > Build Project.

    If a build generates any error or warning, you can view it in the Problems view. If you encounter difficulty, refer to the following topics in the Eclipse* documentation:

  4. Review the build messages in the Console view. The project should build successfully.
    You can observe that the Outline view has also been populated with objects created from your code. If you select an item from the Outline view, the corresponding text in the editor is highlighted.