This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS3.3编译后生存的程序段顺序问题



编译后,用官方工具转成bin文件,生成的段顺序错乱,怎么解?

cmd文件如下:


MEMORY
{
.......
 VMEM  : o = 80000000h l = 00000200h
 CODE  : o = 80000200h l = 0003F9F8h
 AA  : o = 8003FBF8h l = 00000004h f = 0x00000001
 BB  : o = 8003FBFCh l = 00000004h f = 0x00000002
}

SECTIONS
{   
.......
    .vct >   VMEM
    .text    >   CODE
    .cinit >   CODE
    .const >   CODE
    .switch >   CODE
}

结果,bin文件中BB在AA的前面,怎么保证BB在AA之后呢?

按下面的改,还是不行:

SECTIONS
{   
.......
    .vct >   VMEM
    .text    >   CODE
    .cinit >   CODE
    .const >   CODE
    .switch >   CODE
      AA
      BB
}