On Wed, May 10, 2006 at 02:38:30PM -0600, Shaun Jackman wrote:
> What optimisation option is needed to prod arm-elf-gcc -mthumb to
> generate a tail call? ARM works as expected.

It's not yet supported.  Remember, bl has a long range but clobbers lr, and
there's no long branch instruction, so you have to convert the call to
indirect.  It's probably a space loss, stack usage improvement, and I'm
not sure offhand about performance - may be a bit slower.

-- 
Daniel Jacobowitz
CodeSourcery

Reply via email to