在线时间4 小时
UID227356
注册时间2010-10-5
NXP金币0
该用户从未签到
中级会员
 
- 积分
- 203
- 最后登录
- 2020-11-18
|

楼主 |
发表于 2011-12-10 10:12:47
|
显示全部楼层
RE:请问cw编译器 C语言编程环境 ,SP初始值和堆栈大小,分别在哪个文件中修改的?
prm文件
/* This is a linker parameter file for the mc9s08fl16 */
NAMES END /* CodeWarrior will pass all the needed files to the linker by command line. But here you may add your own files too. */
SEGMENTS /* Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */
Z_RAM = READ_WRITE 0x0040 TO 0x00FF;
RAM = READ_WRITE 0x0100 TO 0x043F;
ROM = READ_ONLY 0xd000 TO 0xFFAD; //[xg]
ROM1 = READ_ONLY 0xFFC0 TO 0xFFD1;
/* INTVECTS = READ_ONLY 0xFFD2 TO 0xFFFF; Reserved for Interrupt Vectors */
END
PLACEMENT /* Here all predefined and user segments are placed into the SEGMENTS defined above. */
DEFAULT_RAM, /* non-zero page variables */
INTO RAM;
_PRESTART, /* startup code */
STARTUP, /* startup data structures */
ROM_VAR, /* constant variables */
STRINGS, /* string literals */
VIRTUAL_TABLE_SEGMENT, /* C++ virtual table segment */
DEFAULT_ROM,
COPY /* copy down information: how to initialize variables */
INTO ROM; /* ,ROM1: To use "ROM1" as well, pass the option -OnB=b to the compiler */
_DATA_ZEROPAGE, /* zero page variables */
MY_ZEROPAGE INTO Z_RAM;
END
STACKSIZE 0x90 //0x80
VECTOR 0 _Startup /* Reset vector: this is the default entry point for an application. */
VECTOR 21 SCI_Receive_ISR //串口接收中断向量号 |
|