This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: assembler relaxation


Hi Nagaraju,
Can you please send the "assemble_insn" function code for your port?

Concept is simple: in "assemble_insn" function, opcode and operands will be
validated and assembly instruction will be generated appropriately. You can use
"check_range" function for checking the operand ranges.


Please Refer the tc-cr16.c file also.

Thanks
Swami

nagaraju.m wrote:
Hi,

I am struck in assembler relaxation case...

I have ported Binutils to a new port. My problem is that in a 16-bit instruction if the constant range is exceeded then I need to emit 2 instructions. I have referred other architectures and did it and my assembler is generating instructions them. While running some bench mark codes it is observed instead of generating two instructions it is generating 1-st instruction correctly and for other instruction it is appending Zero's as a result it got struck up.

Thanks,
Nagaraju M












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