demo.spc

来自「Nucleus实时操作系统是Accelerater Technology公司开发」· SPC 代码 · 共 58 行

SPC
58
字号
/* Example specification file for Nucleus PLUS and CrossCode on a mythical
   68030 Evaluation Board.  This file is designed for all sections
   to be loaded into RAM.  See CrossCode documentation for details on
   ROM linker specification files.  Note:  Nucleus PLUS defines several
   new sections.  */

partition { overlay {
   
    /* ROM sections follow:  */

    /* CrossCode reset vectors.  */
    region {} reset;

    /* Nucleus PLUS interrupt vector assignments.  */
    region {} vectors;

    region {} init;

    region {} exit;

    /* Instruction area.  */
    region {} code[align=4];

    /* Constant data area.  */
    region {} const[align=4];

    /* Constant string area.  */
    region {} string[align=4, roundsize=4];

    /* Start of ROM copy of RAM data section.  In RAM model, DATA is 
       defined as the same address as the RAM data section.  */
    DATA =  $;


    /* RAM sections follow:  */

    /* Initialized data section.  */
    region {} data[align=4];

    /* Uninitialized data section.  */
    region {} ram[align=4];

    /* Section that defines RAM available for malloc */
    region {} malloc[align=4,size=500]; 

    /* Section that defines RAM available for system stack.  */        
    region {} stack[align=4,size=500,roundsize=4];

    /* Initial stack pointer.  */
    STKTOP =  $;

    /* Section that marks the beginning of available
       memory for Nucleus PLUS.  */
    region {} sys_memory[align=4];  

} example; } RAM[addr=0x4000];
    

⌨️ 快捷键说明

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