PDATA 스택 재진입 호출 방법

기술노트 63666

아키텍처:

8051

컴포넌트:

linker

업데이트:

2018-02-28 오전 2:50

Introduction

This Technical Note applies to IAR Embedded Workbench for 8051 version 7.60.

General

Here are some hints to help you configure the PDATA stack reentrant calling convention. You need to modify the .xcl linker configuration file if you want to use this calling convention.

First of all make sure that you place the PDATA stack before other XDATA memory objects. The .xcl file is read and processed top-down by the linker.

Examples:

-D_PDATA0_START=0x0001
-D_PDATA0_END=0x00FF
-D?PBANK_NUMBER=0x00

This will use "page 0" with the address range 0x0001-0x00FF in the XDATA memory. You need to avoid address zero.

-D_PDATA0_START=0x0100
-D_PDATA0_END=0x01FF
-D?PBANK_NUMBER=0x01

This will use "page 1" with the address range 0x0100-0x01FF in the XDATA memory.

-D_PDATA0_START=0x0200
-D_PDATA0_END=0x02FF
-D?PBANK_NUMBER=0x02

This will use "page 2" with the address range 0x0200-0x02FF in the XDATA memory.

Another thing worth doublechecking is the menu:
Project > Options > General Options > Data Pointer > Page register address
where the top byte is stored for the PDATA stack page.
You do not want other data to overwrite this location.

 

All product names are trademarks or registered trademarks of their respective owners.

죄송하지만, 당사 사이트에서는 Internet Explorer를 지원하지 않습니다.보다 편안한 사이트를 위해 Chrome, Edge, Firefox 등과 같은 최신 브라우저를 사용해 주시길 부탁드립니다.