📄 lnkm169s_avr064.xcl
字号:
/* - lnk3s.xcl - * * XLINK command file for the ICCAVR C-compiler using the -v3, -ms options. * Segments are defined for a generic AT90S with a maximum of 64 kbytes data * address space and 128 Kbytes program address space. * * Usage: xlink your_file(s) -f lnk3s * * File version: $Name: $ *//* * Modify the lines below to alter the size of the RSTACK, CSTACK and HEAP * segments. These need to be fine tuned to suit your specific application. */-D_..X_CSTACK_SIZE=32 /* 4096 bytes for auto variables and register save. */-D_..X_RSTACK_SIZE=128 /* 256 bytes for return addresses, equivalent to */ /* 128 levels of calls, including interrupts. */-D_..X_HEAP_SIZE=256 /* 4096 bytes of heap. *//* * The following segments are used by the compiler: * * Program address space read only segments (internal Flash) * ========================================================= * segment address range max size (dec) * ------- ------------- -------------- * INTVEC 0 - 1F 32 bytes * TINY_F 0 - FF 256 bytes * SWITCH 0 - FFFF 64 Kbytes * DIFUNCT 0 - FFFF 64 Kbytes * INITTAB 0 - FFFF 64 Kbytes * NEAR_F 0 - FFFF 64 Kbytes * CODE 0 - 1FFFF 128 Kbytes * FAR_F 0 - 1FFFF 128 Kbytes * HUGE_F 0 - 1FFFF 128 Kbytes * TINY_ID 0 - 1FFFF 128 Kbytes * NEAR_ID 0 - 1FFFF 128 Kbytes * * Data address space read/write segments * ============================================================== * segment address range max size (dec) * ------- ------------- -------------- * TINY_Z 60 - FF 160 bytes * TINY_N 60 - FF 160 bytes * TINY_I 60 - FF 160 bytes * CSTACK 60 - FFFF 64 kbytes * HEAP 60 - FFFF 64 kbytes * RSTACK 60 - FFFF 64 kbytes * NEAR_Z 60 - FFFF 64 kbytes * NEAR_I 60 - FFFF 64 kbytes * NEAR_N 60 - FFFF 64 kbytes * NEAR_C 60 - FFFF 64 kbytes * * String literals and constant objects are placed in the NEAR_C segment, * unless the -y command line option is gven. If it was given string literals * and constant objects will be placed in the NEAR_ID segment which is * initialized by cstartup. * * The address ranges given in the table above specifies the "hard" limits * where a given segment may be placed, e.g. it is not allowed to place the * TINY_F segment anywhere outside of the given range 0-FF. *//* Define CPU */-cavr/*************************************************************//* Segments in program address space (internal Flash memory) *//*************************************************************//* Code memory */-Z(CODE)INTVEC=0-5B /* 22 Interrupt vectors * 4 bytes bytes each *//* Fill unused interrupt vector's with RETI */-H1895 -h(CODE)0-57-Z(CODE)TINY_F=0-FF-Z(CODE)SWITCH,INITTAB,DIFUNCT=0-3FFF//-! Z(CODE)NEAR_F=0-1FFF -!-Z(CODE)NEAR_F=0-1FFF-Z(CODE)CODE=58-3FFF//-Z(CODE)BOOT=3800-3FFF -Z(CODE)TINY_ID,NEAR_ID,CHECKSUM=58-3FFF/***************************************************************************//* Segments in data address space (internal or external SRAM/EPROM/EEPROM) *//***************************************************************************/-D_..X_RAMEND=4EF /* Changed from 0x4FF to 0x4EF because of the Sample code-registers from 0x4F0-0x4FF */-Z(CONST)NEAR_C=100-_..X_RAMEND/* Internal data memory */ /*-Z(DATA)TINY_I,TINY_Z,TINY_N=60-FF*/-Z(DATA)CSTACK+_..X_CSTACK_SIZE=100-_..X_RAMEND-Z(DATA)HEAP+_..X_HEAP_SIZE=100-_..X_RAMEND-Z(DATA)RSTACK+_..X_RSTACK_SIZE=100-_..X_RAMEND-Z(DATA)NEAR_I,NEAR_Z,NEAR_N=100-_..X_RAMEND-Z(DATA)SAMPLE_CODE_REGISTERS=4F0-4FF/* Internal eeprom memory */-Z(XDATA)EEPROM_I,EEPROM_N=0-1FF /* * Select reduced "printf" support to reduce library size. * See configuration section in manual concerning printf/sprintf. */-e_Printf_1=_Printf/* * Disable floating-point support in "scanf" to reduce library size. * See configuration section in manual concerning scanf/sscanf */-e_Scanf_1=_Scanf/* Suppress one warning which is not relevant for this processor */-w29/* Code will now reside in file aout.a90 or aout.d90, unless -o is specified *//* .d90 is the default if debug system is linked (option -r) *//* .a90 is the default without debugging. Default format is -Fmotorola */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -