Sourcery G++ comes with some simple applications. You can import the sample programs into an IDE project.
Start by following the steps described in
the section called “Building Applications”. Call the project
sample
, and do not create a new source file.
At this point, the sample
project exists,
but there is no associated source code. The next step is to
import a file from the example directory.
Right-click on the sample project,
and select .
Select → , and click
. Click on
beside the From directory: edit box.
Navigate to the Sourcery G++ install directory and then to
share/sourceryg++-arm-none-symbianelf-examples/fibonacci
, and
click . Click the checkbox beside
main.c
and fib.c
, then
click .
The “Managed Make C project” compiles automatically. Your sample program is now ready to execute or debug. Please refer to the section called “Debugging Applications” for instructions on how to debug the target application.