The output binary files are different built by arm-gcc 5.3 linux and win32.
We used the arm-gcc-4.8 (Linux/win32) to build our codebases in Linux OS and Windows MinGW.
The MinGW output binary file is same as Linux binary file.
But the two binary files are different after we used arm-gcc-5.3 (Linux/win32). (same codebase, same compiler option)
such as
The elf.s disassembly code built by arm-gcc-5.3-linux is described as bleow.
10087196: f8dd b034 ldr.w fp, [sp, #52] ; 0x34
1008719a: f8dd 9028 ldr.w r9, [sp, #40] ; 0x28
1008719e: f8dd 802c ldr.w r8, [sp, #44] ; 0x2c
100871a2: 9e0c ldr r6, [sp, #48] ; 0x30
100871a4: f8dd a018 ldr.w sl, [sp, #24]
100871a8: f8dd e01c ldr.w lr, [sp, #28]
100871ac: 9f08 ldr r7, [sp, #32]
100871ae: 9b09 ldr r3, [sp, #36] ; 0x24
The result by arm-gcc-
10087196: f8dd a018 ldr.w sl, [sp, #24]
1008719a: f8dd 9028 ldr.w r9, [sp, #40] ; 0x28
1008719e: f8dd b034 ldr.w fp, [sp, #52] ; 0x34
100871a2: 9b09 ldr r3, [sp, #36] ; 0x24
100871a4: 9e0c ldr r6, [sp, #48] ; 0x30
100871a6: 9f08 ldr r7, [sp, #32]
100871a8: f8dd 802c ldr.w r8, [sp, #44] ; 0x2c
100871ac: f8dd e01c ldr.w lr, [sp, #28]
Question information
- Language:
- English Edit question
- Status:
- Expired
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: