
Hitachi Embedded Workshop User Manual
30
2.6
Building a Project
The outline of the build process is shown in figure 2.1.
2.6.1
Building a Project
The build option only compiles or assembles those files that have changed since the last build. Additionally, it
will rebuild source files if they depend upon a file that has changed since the last build. For instance, if the file
“test.c” #include’s the file “header.h” and the latter has changed since the last build, the file “test.c” will be
recompiled.
To perform a build:
Select [Build->Build] or click the build toolbar button (
) or press F7 or click the right mouse button on a
project icon in the “Projects” tab of the “Workspace” window and select [Build] from the pop-up menu.
The build all option compiles and assembles all source files, irrespective of whether they have been modified or
not, and links all of the new object files produced.
To perform a build all:
Select [Build->Build All], or click the build all toolbar button (
), or click the right mouse button on a
project icon in the “Projects” tab of the “Workspace” window and select [Build All] from the pop-up menu.
Both the build and the build all will terminate if any of the project files produce errors.
2.6.2
Building Individual Files
The Hitachi Embedded Workshop lets you build project files individually.
To build an individual file:
1. Select the file which you want to build from the project window.
2. Select [Build->Build File], click the build file toolbar button (
) or press CTRL+F7 or click the right
mouse button on a file icon in the “Projects” tab of the “Workspace” window and select [Build <file>]
from the pop-up menu.