www.pudn.com > at91sam7s64_mouseusb.rar > at91_lnk.xcl


// --------------------------------------------------------- 
//   ATMEL Microcontroller Software Support  -  ROUSSET  - 
// --------------------------------------------------------- 
// The software is delivered "AS IS" without warranty or  
// condition of any  kind, either express, implied or  
// statutory. This includes without limitation any warranty  
// or condition with respect to merchantability or fitness  
// for any particular purpose, or against the infringements of 
// intellectual property rights of others. 
// --------------------------------------------------------- 
//  File: at91_lnk.xlc 
// 
//  1.1 22/JUN/04 JPP    : Creation for 4.10B 
// 
//  $Revision: 1.2 $ 
// 
// --------------------------------------------------------- 
 
// Inform the linker about the CPU family used. 
-carm 
 
// Read-only segments mapped to ROM. 
-DROMSTART=00000000 
-DROMEND=0007FFF 
 
// Address range for reset and exception 
-Z(CODE)INTVEC=00-3F 
 
// Startup code and exception routines (ICODE). 
-Z(CODE)ICODE,DIFUNCT=ROMSTART-ROMEND 
 
// Code segments may be placed anywhere. 
-Z(CODE)CODE=ROMSTART-ROMEND 
//************************************************ 
// Original ROM location for __ramfunc code copied 
// to and executed from RAM. 
//************************************************ 
 
// Various constants and initializers. 
-Z(CONST)INITTAB,DATA_ID,DATA_C=ROMSTART-ROMEND 
 
// Read/write segments mapped to RAM. 
-DRAMSTART=00000000 
-DRAMEND=0007FFF 
 
// Data segments. 
-Z(DATA)DATA_I,DATA_Z,DATA_N=RAMSTART-RAMEND 
 
// __ramfunc code copied to and executed from RAM. 
-Z(DATA)CODE_I=RAMSTART-RAMEND 
 
//************************************************ 
// ICCARM produces code for __ramfunc functions in 
// CODE_I segments. The -Q XLINK command line 
// option redirects XLINK to emit the code in the 
// CODE_ID segment instead, but to keep symbol and 
// debug information associated with the CODE_I 
// segment, where the code will execute. 
//************************************************ 
 
//************************************************************************* 
// Stack and heap segments. 
//************************************************************************* 
 
-D_CSTACK_SIZE=200 
-D_IRQ_STACK_SIZE=100 
-D_HEAP_SIZE=200 
 
-Z(DATA)CSTACK+_CSTACK_SIZE=RAMSTART-RAMEND 
-Z(DATA)IRQ_STACK+_IRQ_STACK_SIZE,HEAP+_HEAP_SIZE=RAMSTART-RAMEND