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:CCS 8.3确定库的代码大小。

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/770839/ccs-ccs-8-3-determining-code-size-of-a-library

主题中讨论的其他器件:MSP430F2272

您好!

我正在阅读 此 http://www.ti.com/lit/an/slaa368a/slaa368a.pdf 文档、并注意到在第4节"代码大小"中、TI 制作了一个以字节为单位的代码大小的表。

我想知道如何在 CCS 中测量这一点? 我有用于不同模块的.c 和.h 文件。 我使用的是 MSP430F2272微控制器。

 

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

    我不知道如何为该特定文档确定代码大小。

    他们可能使用了链接器映射文件。  当您使用-map_file=filename 选项时、链接器会生成此文件。  在 CCS 工程中、该文件通常名为 name_of _project.map。  它是使用您在 C 或 C++源文件中使用的同一编辑器查看的文本文件。

    他们可能使用 了 CG_xml 包中的实用程序 secti

    谢谢、此致、

    乔治