branch insn question
Dmitry Eremin-Solenikov
dbaryshkov@gmail.com
Sat Jan 9 16:46:00 GMT 2010
Hello,
I've a small problem with branch instructions on my platorm (m68hc08).
All branch instructions are only short-ranged (signed 8bit offset).
The recommended way to handle this is to emit jump-over code: instead of
beq _long_label
emit:
bne .Lshort
jmp _long_label
.Lshort:
My question is: should this be handled somehow by cgen? Or this should
be completely done via gas relaxation? And what attributes should I use
on branch instructions in .cpu file?
Thank you.
--
With best wishes
Dmitry
More information about the Cgen
mailing list