|
楼主 |
发表于 2006-4-28 20:11:47
|
显示全部楼层
-bfunc_lit:<address ranges> Assign the address ranges for the area named "func_lit." The format is <start address>[.<end address>] where addresses are byte addresses. Any memory not used by this area will be consumed by areas that follow it, so this effectively declares the size of the FLASH memory. For example, some typical values are:
-bfunc_lit:<地址序列>按照指定的地址序列为"func_lic"区段编址。地址序列的格式是:<起始地址>[.<中指地址>]。这里是按照字节来编址的。这一区段声明的地址空间将受到保护不会被其他相邻的区段占用,所以,这是一个有效的声明Flash存储器大小的方法。例如,一些典型的设定值为:
-bfunc_lit:0x60.0x10000 for ATMega
-bfunc_lit:0x60.0x10000 当使用ATMega系列的时候
-bfunc_lit:0x1a.0x800 for 23xx
-bfunc_lit:0x1a.0x800 当使用23系列的时候
-bfunc_lit:0x1a.0x2000 for 85xx
-bfunc_lit:0x1a.0x2000 当使用85系列的时候
-bdata:<address ranges> Assign the address ranges for the area or section named "data," which is the data memory on the AVR. For example, some typical values are:
-bdata:<地址序列> 按照指定的地址序列为data区段或者块编址。其中,data区段是AVR的数据存储区。例如,一些典型的设定值为:
-bdata:0x60.0x800 for ATMega
-bdata:0x60.0x800 当使用ATMega系列的时候
-bdata:0x60.0x80 for 23xx
-bdata:0x60.0x80 当使用23系列的时候
-bdata:0x60.0x200 for 85xx
-bdata:0x60.0x200 当使用85系列的时候
-beeprom:<address ranges> Assign the address ranges for the EEPROM. EEPROM data is written to <output file>.eep as an Intel HEX file regardless of the output file format.
-beeprom:<地址序列> 按照指定的地址序列为EEPROM编址。EEPROM数据将被强制按照Intel HEX格式输出到<输出文件名>.eep文件中。
-b<area>:<address ranges> Assigns the address ranges for the area. You can use this to create your own areas with its own address. See Program Areas. The range format is <start>.<end>[:<start>.<end>]*. For example:
-b<区域名称>:<地址序列> 按照指定的地址序列为指定的区域编址。你可以使用这个参数来建立你自己的区域并为之分配自己的地址。具体参照编程区域的相关内容。编址的格式是<起始地址>.<结束地址>[:<起始地址>.<终止地址>]
-bmyarea:0x1000.0x2000:0x3000.0x4000
specifies that "myarea" goes from locations 0x1000 to 0x2000, and 0x3000 to 0x4000.
设定"myarea"为从的0x1000到0x2000以及从0x3000到0x4000的地址空间。
-dram_end:<address> Define the end of the internal RAM area. This is used by the startup file to initialize the value of the hardware stack. For the classic non-Mega devices, "ram_end" is the size of the SRAM plus 96 bytes of IO and CPU registers minus one. For the Mega devices, it is the size of the SRAM minus one. External SRAM does not affect this value since the hardware stack is always allocated in the internal RAM for faster execution speed.
-dram_end:<地址> 定义内部RAM区段的终止地址。这一设定被启动文件用来初始化硬件堆栈的大小。对于非Mega系列的器件来说,"ram_end"指定的是SRAM的大小加上96个字节的IO、CPU寄存器大小再减一以后的数值。对于Mega系列芯片来说,这一设定值是SRAM的大小减一以后的值。外部的SRAM大小不会影响到这一设定值,因为硬件堆栈总是被定位在内部的RAM空间中用以获得最快的执行速度。 |
|