📄 main.cmd
字号:
/****************************************************************************/
/* LINKER COMMAND FILE - MEMORY SPECIFICATION for C240/243 */
/* */
/****************************************************************************/
-c /* ROM autoinitialization model */
/* -o IO.out /* Output file name */
/* -l rts2xx.lib /* Runtime-support library */
-m main.map /* Create a map file */
-stack 40
/****************************************************************************/
/******** Specify the memory configuration **********************************/
/****************************************************************************/
MEMORY
{
PAGE 0: VECS: origin = 0h, length = 40h
PVECS: origin = 44h, length = 70h
PROG : origin = 0100h, length = 7F00h
PAGE 1: MMRS: origin = 0h, length = 05Fh
B2: origin = 0060h, length = 020h
B0: origin = 0200h, length = 100h
B1: origin = 0300h, length = 100h
SARAM: origin = 0800h, length = 0800h
EXT: origin = 8000h, length = 8000h
}
/*--------------------------------------------------------------------------*/
/* SECTIONS ALLOCATION */
/*--------------------------------------------------------------------------*/
SECTIONS
{
.reset : { } > VECS PAGE 0
.vectors : { } > VECS PAGE 0
.pvecs : { } > PVECS PAGE 0
.text : { } > PROG PAGE 0 /*Executable code and constants*/
.cinit : { } > PROG PAGE 0 /*Tables for explicitly initialized global and static variables*/
.bss : { } > SARAM PAGE 1
.const: load = PROG PAGE 0,run = SARAM PAGE 1
{
__const_run = .;
*(.c_mark)
*(.const)
__const_length = . - __const_run;
} /*Global and static const variables that are explicitly */
.stack : { } > B1 PAGE 1 /*Software stack area*/
}
/* .data : { } > SARAM PAGE 1*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -