⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cl.cmd

📁 TI公司2407的TIMER1测试程序
💻 CMD
字号:
/****************************************************************************/
/* Cl.CMD - v6.50  COMMAND FILE FOR LINKING TMS320C2xx C PROGRAMS          */
/*                 Copyright 1988, 1994 Texas Instruments Incorporated     */
/*                                                                          */
/*    Usage:       dsplnk <obj files...> -o <out file> -m <map file> c.cmd  */
/*                                                                          */
/*    Description: This file is a sample command file that can be used      */
/*                 for linking programs built with the TMS320C2xx C         */
/*                 Compiler.   Use it a guideline; you may want to change   */
/*                 the allocation scheme according to the size of the       */
/*                 program and the memory configuration of your TMS320Cxx.  */
/*                                                                          */
/*    Notes: (1)   You must specify the directory in which the libraries    */
/*                 (RTS.LIB and FLIB.LIB) are located.  Either add a        */
/*                 "-i<directory>" line to this file, or use the system     */
/*                 environment variable C_DIR to specify a search path for  */
/*                 libraries.                                               */
/*                                                                          */
/*           (2)   This file links the table of reset vectors from the file */ 
/*                 VECTORS.OBJ into the first 20h words of program memory.  */
/*                 As supplied, the only vector initialized with an actual  */
/*                 routine is the RESET vector (address 0), which is        */
/*                 initialized to the C entry point "_c_int0".  If you      */
/*                 have additional interrupt handlers, you can include them */
/*                 in the vector table by modifying VECTORS.ASM (from       */
/*                 RTS.SRC).                                                */
/****************************************************************************/
 
-c                           /* LINK USING C CONVENTIONS    */
/*-u RESET                      LINK IN THE RESET VECTORS    */
-i c:\tic2xx\c2000\cgtools\lib    /* DIR FOR *.LIB FILES         */
-l c:\tic2xx\c2000\cgtools\lib\rts2xx.lib        /* GET RUN-TIME SUPPORT   */
 
/*--------------------------------------------------------------------------*/
/*  MEMORY SPECIFICATION                                           */
/*  Block B0 is configured as data memory (CNFD) and MP/MC- = 1    */
/*  (microprocessor mode). Note that data memory locations	       */
/*  80h--1FFh are not configured.                                  */
/*--------------------------------------------------------------------------*/
MEMORY
{
    PAGE 0: VECS: origin = 0h    , length = 040h        /* VECTORS */
	        PROG: origin = 40h   , length = 0FFC0h      /* PROGRAM */

    PAGE 1: MMRS: origin = 0h    , length =  060h       /* MMRS    */
            B2  : origin = 0060h , length =  020h       /* DARAM   */
/*          B0  : origin = 0200h , length = 0100h       /* DARAM   */
/*          B1  : origin = 0300h , length = 0100h       /* DARAM   */
/*          B0B1: origin = 0200h , length = 0200h       /* DARAM   */
	    PERIFRM : origin = 7000h , length = 0440h
	    DATA: origin = 0200h , length = 0200h       /* IDM     */     
/*edited by wangjiang*/	  
     /*   EXT : origin= 8000h ,length = 3000h    */
	    
	    
}

/*--------------------------------------------------------------------*/
/* SECTIONS ALLOCATION                                                */
/*--------------------------------------------------------------------*/
SECTIONS
{
    .vectors : { } > VECS      PAGE 0   /* Interrupt vector table  */
/*  .reset   : { } > VECS      PAGE 0      Reset code              */
    .start   : { } > PROG      PAGE 0   /* Code                    */
    .text    : { } > PROG      PAGE 0   /* Code                    */
    .cinit   : { } > PROG      PAGE 0   /* INITIALIZATION DATA TABLES*/
    .switch  : { } > PROG      PAGE 0   
    .data    : { } > PROG      PAGE 0   /*                         */
    .mmrs    : { } > MMRS      PAGE 1   /* Memory mapped registers */
    .const   : { } > DATA      PAGE 1   /* Const                   */  
    /*edited by wangjiang*/
  /* .bss     : { } > DATA align(128) PAGE 1   /*GLOBAL VARS,STACK,HEAP*/  
   .bss     : { } > PROG   align(128)    PAGE 0     /*GLOBAL VARS,STACK,HEAP*/ 
      
      
    
  /* .sysmem  : { } > DATA      PAGE 1         /*                         */    
        
     .sysmem  : { } > PROG      PAGE  0   /*                         */ 
     
     
       
    .stack   : { } > DATA      PAGE 1   /*                         */
/*  .d_line  : { } > B0B1      PAGE 1	/* Used for FIR filter delay line */
    .pregs   : { } > PERIFRM   PAGE 1
/*  .blk0    : { } > B0        PAGE 1    Block B0                  */
/*  .blk1    : { } > B1        PAGE 1    Block B1                  */
    .blk2    : { } > B2        PAGE 1   /* Block B2                */
    
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -