Adding a C Source File

The following topic applies to Eclipse* for C/C++.

To add a source file to the hello_world project:

  1. Select the hello_world project in the Project Explorer view.
  2. Select File > New > Source File. The New Source File dialog box opens.

    Note

    The dialog box automatically populates the source folder for the source file to be created. You can change this by entering a new location or selecting Browse.
  3. Enter new_source_file.c in the Source File field.
  4. Select a Template from the drop-down list or Configure a new template.
  5. Click Finish to add the file to the hello_world project.
  6. In the Editor view, add your code for new_source_file.c.
  7. When your code is complete, Save your file.
Para obtener información más completa sobre las optimizaciones del compilador, consulte nuestro Aviso de optimización.