This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: "Parsing Parallel Instructions"
- To: xinant at cognigine dot com (Xinan Tang)
- Subject: Re: "Parsing Parallel Instructions"
- From: Nick Clifton <nickc at cambridge dot redhat dot com>
- Date: 17 Apr 2001 22:56:51 +0100
- Cc: binutils at sources dot redhat dot com
- References: <3ADCAD45.4020902@cognigine.com>
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