Building an object file

To create an object file from a C, C++, or assembly source file that is open in the File Editor pane, select Build This File from the Code window Build menu. If the file is associated with a user-defined project, it is built automatically using the makefile defined for that project. Otherwise, the Build dialog is displayed for you to enter the build details. It looks something like this:

image\bldfile.gif

Working Directory

Specify the directory for working files:

Select Same as Target if working files are in the same directory as the files that are loaded on the target.

Select Same as Makefile if working files are in the same directory as the makefile.

Select Specified if you want to specify another directory. Enter a directory name and path in the text box.

Target

Specify the target file, if it is not preloaded from a project. Click image\dropdown.gif to see a drop-down list of previously used build targets.

Makefile

Specify the path and filename of the makefile that you want to use. Click image\search.gif to display a list of files that you have worked with recently. You can select one of those files, or the Select File… option to display a Select File dialog where you can browse for the file that you require.

Directory

If you select the Specified radio button, under Working Directory, use this data field to enter the name of the working directory. Click image\search.gif to display a list of directories that you have worked with recently. You can select one of those directories, or the Select Dir… option to display a Select Directory dialog where you can browse for the directory that you require.

Build Command

As you enter details, the command string is constructed and displayed in this field. You can amend the command line before starting the build. You can click image\dropdown.gif to display a list of previously used command lines.

Click Build to build the object file. The results are displayed in the Build tab of the Output pane. The Build dialog is closed.

Click Cancel to close the Build dialog without building the specified file.

image\lamp.gifWhen you have built the object file, you can include it into an executable file for loading to your target processor at a later time.