10.07.2015 Views

PDF version - ARM Information Center

PDF version - ARM Information Center

PDF version - ARM Information Center

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.

임베디드 소프트웨어 개발3.3 타겟 하드웨어에 맞게 C 라이브러리 조정기본적으로 C 라이브러리는 세미호스팅을 사용하여 장치 드라이버 수준 기능을제공하므로 호스트 컴퓨터가 입력 및 출력 장치 역할을 할 수 있습니다. 이는 개발 하드웨어가 최종 시스템의 입력 및 출력 기능을 빠짐없이 갖추지 못한 경우가많으므로 유용합니다.타겟 하드웨어를 사용하며 C 라이브러리의 구현을 위해 이미지에 자동으로 링크되는 C 라이브러리 함수를 구현할 수 있습니다. 그림 3-5에서는 C 라이브러리 타겟 조정이라고 하는 이 과정을 보여 줍니다.ISO CISO CC LibraryUserCodeInput/OutputRetargetInput/OutputDebugAgentSemihostingSupportTargetHardware그림 3-5 C 라이브러리 타겟 조정예를 들어 LCD 화면과 같은 주변 I/O 장치가 있는 경우 디버거 콘솔에 출력하는fputc () 의 라이브러리 구현을 재정의하고 LCD로 출력하는 라이브러리를 구현할 수 있습니다. fputc () 의 이러한 구현은 최종 이미지에 링크되므로 printf ()계열의 함수 전체가 LCD로 출력하게 됩니다.<strong>ARM</strong> DUI 0203IK Copyright © 2002-2008 <strong>ARM</strong> Limited. All rights reserved. 3-9Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!