c40.cmd

来自「ucos在DSP40上的移植,可以用,在ucos网站上下的!」· CMD 代码 · 共 58 行

CMD
58
字号
/****************************************************************************/
/* C40.CMD - COMMAND FILE FOR LINKING C40 C PROGRAMS                        */
/*                                                                          */
/*    Usage:       lnk30 <obj files...> -o <out file> -m <map file> c40.cmd */
/*                                                                          */
/*    Description: This file is a command file for the uCOS-II RTOS,        */
/*                 memory model port.                                       */
/*                                                                          */
/*    Notes: (1)   assumes 2k words internal memory, and 64k words          */
/*                 available on local bus.                                  */
/*           (2)   ivtp, tvtp assumed to be overlaid at IRAM0. uCOS trap    */
/*                 is at 0x7, which is an unused interrupt vector location. */
/*           (3)   timer 0 is used as operating system timer.               */
/*           (4)   c_int00, defined in boot.obj, is assumed to be program   */
/*                 entry point. I assume you link this in from rts40.lib,   */
/*                 therefore .text from rts40.lib is placed first in the    */
/*                 text section. This greatly simplifies bootloading.       */ 
/*           (5)   You must specify the directory for rts40.lib in          */
/*                 two places: after the -l flag, and in SECTIONS, below    */
/*                                                                          */
/****************************************************************************/
-id:/dsp/lib/dsp
-stack 0x400                               /* 1K WORD STACK                 */
-heap  0xE000                              /* 56K WORD HEAP                 */
-m ex1.map
-o ex1.out


/* System libraries */
-l rts40.lib
-l prts40.lib


/* A SIMPLE SYSTEM MEMORY MAP */

MEMORY
{
   IRAM0:  org = 0x2FF800  len = 0x800      /* INTERNAL RAM                 */
   RAM0:   org = 0x300000  len = 0x10000    /* LOCAL BUS                    */
}

/* SECTIONS ALLOCATION INTO MEMORY */

SECTIONS
{
   .text:  load = RAM0               /* CODE - try to insure boot.obj first */
	{
		d:/dsp/lib/dsp/rts40.lib(.text)
		*(.text)
	} 
   .cinit:  > RAM0                   /* INITIALIZATION TABLES               */
   .const:  > RAM0                   /* CONSTANTS                           */
   .bss:    > RAM0, block 0x10000    /* VARIABLES                           */
   .sysmem: > RAM0                   /* DYNAMIC MEMORY (HEAP)               */
   .vector: > IRAM0                  /* IVTP, TVTP                          */
   .stack:  > IRAM0                  /* SYSTEM STACK                        */
}

⌨️ 快捷键说明

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