This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: assembler relaxation
- From: "M R Swami Reddy" <MR dot Swami dot Reddy at nsc dot com>
- To: "nagaraju.m" <nagaraju dot m at redpinesignals dot com>
- Cc: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Mon, 04 Jan 2010 13:24:54 +0530
- Subject: Re: assembler relaxation
- References: <4B385E26.6000207@redpinesignals.com>
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