scat_a.scf

来自「arm7的源代码」· SCF 代码 · 共 49 行

SCF
49
字号
;;; Copyright ARM Ltd 2001. All rights reserved.

;; Semihosting scatter file
;;


ROM_LOAD 0x8000
{
    ROM_EXEC 0x8000
    {
        initMMU.o (InitMMU, +FIRST)      ; Core initialisation inc TCM enable
        __main.o                         ; C Library entry point, must be in a root region
        *  (Region$$Table)               ; this section must be in a root region
        *  (ZISection$$Table)            ; this section must be in a root region
        
;; in this example *(+RO) could be placed in this root region to avoid the individual declarations of
;; __main.o and the two tables

        retarget.o (+RO)
    }

    RAM_Code +0
    {
        dhry_1.o (+RO)
        dhry_2.o (+RO)
        * (+RO)                          ; any remaining code inc C lib.
    }
    RAM_Data +0
    {
        * (+RW,+ZI)
    }

    HEAP +0 UNINIT
    {
        heap.o (+ZI)
    }

    STACKS 0x40000 UNINIT                ; place stack at 256KB
    {
        stack.o (+ZI)
    }

    TTB 0x4000 UNINIT                    ; place translation table at 0x4000
    {
        TTB.o (+ZI)
    }
}

⌨️ 快捷键说明

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