assembler relaxation

M R Swami Reddy MR.Swami.Reddy@nsc.com
Mon Jan 4 07:55:00 GMT 2010


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
>
>  
>
>
>
>    
>
>
>
>   




More information about the Binutils mailing list