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.

Compiler/TMS320F28377S: compiler's allocation order issue

Part Number: TMS320F28377S

Tool/software: TI C/C++ Compiler

Hi,

I have a compiler relevant questions,

I defined constants in order as followed:
const int constint0 = 0;
const int constint1 = 0;
const int constint2 = 0;
const int constint3 = 0;
const int constint4 = 0;
const int constint5 = 0;
const int constint6 = 0;
const int constint7 = 0;
const int constint8 = 0;
const int constint9 = 0;
const int constint10 = 0;
const int constint11 = 0;
const int constint12 = 0;
const int constint13 = 0;
const int constint14 = 0;

However, their addresses in ".map" are not allocated in order:
0000b000 2c0 (0000b000) _constint7
0000b001 2c0 (0000b000) _constint8
0000b002 2c0 (0000b000) _constint6
0000b003 2c0 (0000b000) _constint4
0000b004 2c0 (0000b000) _constint5
0000b005 2c0 (0000b000) _constint3
0000b006 2c0 (0000b000) _constint13
0000b007 2c0 (0000b000) _constint14
0000b008 2c0 (0000b000) _constint12
0000b009 2c0 (0000b000) _constint10
0000b00a 2c0 (0000b000) _constint11
0000b00b 2c0 (0000b000) _constint2
0000b00c 2c0 (0000b000) _constint9
0000b00d 2c0 (0000b000) _constint1
0000b00e 2c0 (0000b000) _constint0

I want those can be allocated in order, could you give me some suggestion?

thank you!

Yuan