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.

TM4C1290NCPDT: About different size of execute file(.out) between different PC

Part Number: TM4C1290NCPDT


Hello,

Regarding to the execute file size (.out) on TM4C1290NCPDT,my customer is asking some question.

They built same program of TM4C1290NCPDT on difference PC but the execute file size (.out) was difference on difference PC.

Their conditions are following, and these are same on each PC.

CCS: 5.5.0.00077

Complier: arm 5.1.1

PC OS: Win10 Pro

 

For example, they confirmed it with three PC’s(No.1, No.2, No.3).

No.1<-> No.2 : Same size.

No.1<-> No.3 : Not same size.

 

1) They confirmed revision of complier, linker and ti-cgt-arm and these revisions weren’t different

   and confirmed Linker option on each CCS but these configurations weren’t different.

 

2) They confirmed some files in compiler folder with comparison tool.

・rtsv7M4_T_le_v4SPD16_eabi.lib -> Not difference

・dmed -> Not difference

・gcc-arm-none-eabi-4_7-2012q4 -> Not difference

 

3)Next, they confirmed section, and the size of two sections(strtab and shstrtab) were different.

Please see attached files. (readelf_out_PC1.txt/ readelf_out_PC2.txt)

 

4)The size of each object files(.obj) are same but after link, size of execute files(.out) aren’t same. (below)

 PC1:1,213,232byte

 PC2:1,213,072byte

When execute files(.out) is converted to binary file.(bin) , size of binary files is same. (below)

But some symbols in map file(.map) are different.

 PC1:141,688byte

 PC2:141,688byte

Please see attached map files. (L_Tiva.Release_N106_PC1.map/ L_Tiva.Release_N106_PC2.map)

 

(Question)

They think the reason of different size is different of two sections (strtab and shstrtab).

So, some symbols in map file(.map) are different on each PC.

Their understanding is correct?

If so, why is different on two sections? Could you please tell us the reason?

Or is there possible else reason of different size?

 

Regards,

Tao_2199

5684.readelf_out_PC1.txt5367.readelf_out_PC2.txtL_Tiva.Release_N106_PC1.txtL_Tiva.Release_N106_PC2.txt

  • I can narrow down the cause of the difference.  But I cannot explain it.

    The only meaningful difference I can see from the files you attached is that three functions are at different addresses. I compared the map files with Beyond Compare.  Here is a screen shot that makes it clear.

    All three functions are in the file EEPROM_AT2526AN_socSPI.c.  So focus your investigation on how that file is compiled, and how those functions end up with different addresses.

    Thanks and regards,

    -George