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.

[参考译文] CCS/TMS320VC5509A:生成全局符号地址

Guru**** 2540720 points
Other Parts Discussed in Thread: TMS320VC5509A

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/580075/ccs-tms320vc5509a-generation-of-global-symbol-addresses

部件号:TMS320VC5509A

工具/软件:Code Composer Studio

目标修复器:TMS320VC5509A

CCS工作室版本 3.3

 

编译和链接后,我得到以下输出,显示 内部RAM中的目标(字节)地址

对于生成的节,请参考附加文件rio.mx

 

                        .hwi_vec : Dest=0.01万 size=0.01万 width=0.0001万

                          trace:dest=0.0112万fc size=0.04万 width=0.0001万

                           args : dest=0.0011万f0c size=0.001万 width=0.0001万

                           text:dest=1.2万 size=0.0195万f0 width=0.0001万

                           BIOS:dest=0002b5f0 size=0.0026万d2 width=0.0001万

                          .cinit:dest=0002dcc2 size=0.0023万f6 width=0.0001万

                      .RTDX_text:dest=0.03万b8 size=0.0072万c width=0.0001万

                          const : dest=0.0307万e4 size=0.0005万c2 width=0.0001万

                        sysinit:dest=0.003万da8 size=0.0392万 width=0.0001万

                        .gblinit:dest=0.0312万d4 size=0.0005万a width=0.0001万

                          .Pinit:Dest=3.134万 size=0万c width=0.0001万

                        trcdata:dest=0.3134万c size=0.0006万 width=0.0001万

 

在Rio.map文件中,我希望找到每个部分带有start-addr的全局符号,请参考随附的Rio.map文件。

我只找到以下符号:

符号部分                 

.text       __text__

.cinit      __cinit__

 

我的问题是:

是否可以通过某种方式让编译器为其余部分生成全局变量 ,并且这些变量可以

在主代码中使用(知道每个部分的地址)。  

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    David Johansson86 说:
    我希望找到每个部分带有start-addr的全局符号

    我确信有这样的符号。  只是它们不是以__text__和__cinit__这两个部分命名的。  例如,考虑.const ...

    [报价用户="David Johansson86"]                          .const:dest=0.0307万e4 size=0.0005万c2 width=0.0001万

    我确定您的程序中有一个符号,其地址为0x0.0307万e4。  在地图文件中搜索该地址以找到它。  (我无法自己搜索地图文件,因为即使您说已附加地图文件,我也看不到该附件。)  

    谢谢,此致,

    -George