This is the mail archive of the binutils@sources.redhat.com 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]

Re: "Parsing Parallel Instructions"


Hi Dr. Xinan Tang

>   Could someone enlight me on how to parsing a parallel instruction
> that consists of several lines?
> 
>   Since md_assemble() process one line only, how to get the next line
> of input within md_assemble()?

Basically md_assemble() has to cache the previous line in order to be
able to decide if it should be emitted in parallel with the current
line.

Take a look at the code for, eg, the m32r port (gas/config/tc-m32r.c)
where it maintains a structure called 'prev_insn'.

Cheers
        Nick


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