我就是在原有的工程中加入了一段代码,有一个比较大的结构体,然后编译总是有如下问题
>> error: C60 section .sddata precedes .bss, file
E:CHYGPS_PseudoliteDSPGPS_Receiver_C2_160510_RTCM_DebuggingDebugnav_fix.obj
>> error: 15-bit displacement fffff6b9 is negative. Located in
E:CHYGPS_PseudoliteDSPGPS_Receiver_C2_160510_RTCM_DebuggingDebugnav_fix.obj, section .text, SPC offset 00001090
>> error: C60 section .sddata precedes .bss, file
E:CHYGPS_PseudoliteDSPGPS_Receiver_C2_160510_RTCM_DebuggingDebugnav_fix.obj
>> error: 15-bit displacement fffff6b9 is negative. Located in
E:CHYGPS_PseudoliteDSPGPS_Receiver_C2_160510_RTCM_DebuggingDebugnav_fix.obj, section .text, SPC offset 0000111c
>> error: C60 section .sddata precedes .bss, file
E:CHYGPS_PseudoliteDSPGPS_Receiver_C2_160510_RTCM_DebuggingDebugnav_fix.obj
>> error: 15-bit displacement fffff6b9 is negative. Located in
E:CHYGPS_PseudoliteDSPGPS_Receiver_C2_160510_RTCM_DebuggingDebugnav_fix.obj, section .text, SPC offset 00001128
>> error: C60 section .sddata precedes .bss, file
E:CHYGPS_PseudoliteDSPGPS_Receiver_C2_160510_RTCM_DebuggingDebugnav_fix.obj
>> error: 15-bit displacement fffff6b9 is negative. Located in
E:CHYGPS_PseudoliteDSPGPS_Receiver_C2_160510_RTCM_DebuggingDebugnav_fix.obj, section .text, SPC offset 00001170
>> error: C60 section .sddata precedes .bss, file
E:CHYGPS_PseudoliteDSPGPS_Receiver_C2_160510_RTCM_DebuggingDebugnav_fix.obj
>> error: 15-bit displacement fffff6b9 is negative. Located in
E:CHYGPS_PseudoliteDSPGPS_Receiver_C2_160510_RTCM_DebuggingDebugnav_fix.obj, section .text, SPC offset 000011a0
>> error: C60 section .sddata precedes .bss, file
E:CHYGPS_PseudoliteDSPGPS_Receiver_C2_160510_RTCM_DebuggingDebugnav_fix.obj
>> error: 15-bit displacement fffff6b9 is negative. Located in
E:CHYGPS_PseudoliteDSPGPS_Receiver_C2_160510_RTCM_DebuggingDebugnav_fix.obj, section .text, SPC offset 00001204
>> warning: output file './Debug/DSPFile.out' is not executable
我的cmd文件如下
MEMORY
[
VECS : o = 00000000h l = 00200h
ROM_PMEM : o = 00000200h l = 2DDFFh
ROM_CINIT : o = 0002DFFFh l = 02000h
BMEM : o = 00030000h l = 0A000h
STACKHEAP : o = 00040000h l = 0B000h
SDMEM_CODE : o = 08000000h l = 300000h
SDMEM_DATA : o = 08300000h l = 100000h
SECTIONS
[
.vectors > VECS
.text > ROM_PMEM
.tables > BMEM
.data > BMEM
.sdcode : SDMEM_CODE
.sddata : SDMEM_DATA
.bss > BMEM
.cinit : load = ROM_CINIT
.const : load = ROM_CINIT
.switch : load = ROM_CINIT
.cio > BMEM
.far > BMEM
.stack > STACKHEAP
.sysmem > STACKHEAP
Memory Models选的是第一个:Far Aggregate。这个错误的原因是什么?有办法解决吗?我的编译环境是CCS 2.2
0