MEMORY { PAGE 33: VECS origin = 0000h, length = 0040h FLASH: origin = 0100h, length = 0F00h SARAM_P: origin = 8100h, length = 1000h
PAGE 12: B2: origin = 0060h, length = 020h B0: origin = 200h, length = 100h B1: origin = 300h, length = 100h SARAM_D: origin = 0800h, length = 0800h EXT_RAM: origin = 8000h , length = 8000h }
SECTIONS { .vectors: > VECS PAGE 33 .text: > FLASH PAGE 33 .data: > FLASH PAGE 33 .bss: > SARAM_D PAGE 12 .stack: > SARAM_D PAGE 12 .buffer: > SARAM_D PAGE 12 }
这段代码跟 MEMORY { PAGE 0: VECS origin = 0000h, length = 0040h FLASH: origin = 0100h, length = 0F00h SARAM_P: origin = 8100h, length = 1000h
PAGE 1: B2: origin = 0060h, length = 020h B0: origin = 200h, length = 100h B1: origin = 300h, length = 100h SARAM_D: origin = 0800h, length = 0800h EXT_RAM: origin = 8000h , length = 8000h }
SECTIONS { .vectors: > VECS PAGE 0 .text: > FLASH PAGE 0 .data: > FLASH PAGE 0 .bss: > SARAM_D PAGE 1 .stack: > SARAM_D PAGE 1 .buffer: > SARAM_D PAGE 1 } 的效果一样吗?
我的意思是说是不是PAGEx可以是任意一个数(只要小于255); 平时我们写成PAGE0和PAGE1是不是为了加强可读性或者说某种约定,就像你命名一个临时变量一般都会用temp而不会用aa或bb之类的名字一样? |