Quantcast
Channel: 蓝牙论坛 - 最近的话题
Viewing all articles
Browse latest Browse all 7485

IAR C51如何像keil C51一样, 将常量定位到code区?

$
0
0

程序里有很多字模,接近1kB,用了const.但发现还是占了XDATA

 5 898 bytes of CODE  memory
    18 bytes of DATA  memory (+ 31 absolute )
 4 016 bytes of XDATA memory
    64 bytes of IDATA memory
     8 bits  of BIT   memory

当改字模的大小时,CODE和XDATA的大小一起变。

有没有办法,像Keil C51一样,只占Code,不占XDATA?


Viewing all articles
Browse latest Browse all 7485

Trending Articles