ARM Thumb code size increase with 4.9
I observed code size increase with 4.9 toolchain, compared with 4.8.x versions for THUMB2 with -Os.
E.g. Test program (sets bit field in struct)
Code generated with 4.8.x toolchain
-------
ldr r3, [pc, #8]
ldr r2, [r3, #16]
bfi r2, r0, #1, #3
str r2, [r3, #16]
bx lr
.word <addr>
Code generated with 4.9 toolchain
-------
ldr r2, [pc, #16]
and.w r0, r0, #7
ldr r3, [r2, #16]
bic.w r3, r3, #14
orr.w r0, r3, r0, lsl #1
str r0, [r2, #16]
bx lr
.word <addr>
Flags used are
----------------
-mcpu=cortex-m3 -mthumb -Os
Does anyone else also observed same? Overall increase seems substantial one.
Similar Reference
-------------------
http://
Any help/pointers would be highly appreciated.
Thanks...Mahavir
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: