Re: [Mspgcc-users] odd code generation

2015-09-27 Thread David W. Schultz
Answered my own question, sort of. The TI version of gcc doesn't have the hooks to linker defined symbols like mspgcc did so I edited the linker script to provide symbols defining the information memory. I also used the now missing crtld.h as a guide and included "char __infoc[];" When I changed

[Mspgcc-users] odd code generation

2015-09-27 Thread David W. Schultz
I am trying to understand why the TI gcc compiler (version from 9 Feb 2015) is generating some wildly inefficient code. The line: v = corrected(results[0]) - p->offsets[0]; Appears to generate this: 2fe0: 1c 42 7e 03 mov &0x037e,r12 2fe4: b0 12 9e 2f call#0x