10.07.2015 Views

PDF version - ARM Information Center

PDF version - ARM Information Center

PDF version - ARM Information Center

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

임베디드 소프트웨어 개발런타임 메모리 모델RealView Compilation Tools에서는 다음과 같은 런타임 메모리 모델을 제공합니다.단일 영역 모델응용 프로그램 스택과 힙은 같은 메모리 영역에서 서로 반대 방향으로 늘어납니다. 자세한 내용은 그림 3-7을 참조하십시오. 이 런타임메모리 모델에서는 새 힙 공간이 할당되면 (예: malloc () 가 호출되는 경우) 스택 포인터의 값을 기준으로 힙이 확인됩니다.SBSTACK0x40000HBHEAP0x20000그림 3-7 단일 영역 모델예제 3-2 단일 영역 모델 루틴LOAD_FLASH ...{...<strong>ARM</strong>_LIB_STACKHEAP 0x20000 EMPTY 0x20000 ; Heap and stack growing towards{ } ; each other in the same region...}2-영역 모델스택과 힙이 별도의 메모리 영역에 배치됩니다. 예를 들어 스택 전용으로 예약하려는 작은 고속 RAM 블록이 있을 수 있습니다. 2-영역 모델에서는 __use_two_region_memory를 가져와야 합니다.이 런타임 메모리 모델에서는 새 힙 공간이 할당되면 힙 한계를 기준으로 힙이 확인됩니다.3-14 Copyright © 2002-2008 <strong>ARM</strong> Limited. All rights reserved. <strong>ARM</strong> DUI 0203IKNon-Confidential

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

Saved successfully!

Ooh no, something went wrong!