This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Suggestions for extended asm


> 1. allow specifying the true length of assembler code
> inserted (equivalent of set_attr "length" ... in *.md,
> currently it is done by counting line separators in the
> string, but that might be unreliable if machine opcodes
> have different sizes or constructs like .rept/.endr are
> used).  This is significant to prevent assembler errors
> if branches have limited range (like -64/+63 on AVR).

This is rather error prone.  I think you should rather fix the
machine description to use ADJUST_INSN_LENGTH to fix up the length of
assembelr insns.
Of course, this job could be made simpler if there was a macro
to adjust the length of a single assembler insn.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]