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.

如何在程序中获取section的地址

假如我定义了一个段

#pragma SET_DATA_SECTION("TESTSEC")

const unsigned int   testvalue = 122;

#pragma SET_DATA_SECTION()

 

怎样在程序中得到section  TESTSEC的首地址和末地址?