14.01.2015 Views

RealView Compilation Tools Developer Guide - ARM Information ...

RealView Compilation Tools Developer Guide - ARM Information ...

RealView Compilation Tools Developer Guide - ARM Information ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Embedded Software Development<br />

Note<br />

The linker does not report any semihosting functions in your application code. An error<br />

only occurs if this type of function is linked in from the C library.<br />

For a full list of C library functions that use semihosting, see Appendix A Semihosting.<br />

2.3.3 Example code for Build 2<br />

Build 2 of the Dhrystone benchmark uses the hardware of the Integrator platform for<br />

clocking and string I/O. See the example build files in the main examples directory, in<br />

...\emb_sw_dev\build2.<br />

The following changes have been made to Build 1 of the example project:<br />

C Library Retargeting<br />

A retargeted layer of ISO C functions has been added. These include<br />

standard I/O functions and clock functionality, some additional error<br />

signaling, and program exit.<br />

Target Dependent Device Driver<br />

A device driver layer has been added that interacts directly with target<br />

hardware peripherals.<br />

See Running the Dhrystone builds on an Integrator on page 2-3.<br />

The symbol __use_no_semihosting is not imported into this project. This is because a<br />

semihosting call is executed during C library initialization to set up the application stack<br />

and heap location. Retargeting stack and heap setup is described in detail in Placing the<br />

stack and heap on page 2-20.<br />

Note<br />

To see the output, a terminal or terminal emulator must be connected to serial port A.<br />

The serial port settings must be set to 38400 baud, no parity, 1 stop bit and no flow<br />

control. The terminal must be configured to append line feeds to incoming line ends,<br />

and echo typed characters locally.<br />

2-14 Copyright © 2002-2007 <strong>ARM</strong> Limited. All rights reserved. <strong>ARM</strong> DUI 0203H<br />

Non-Confidential

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!