Re: RFA: general prologue analysis framework

Daniel Jacobowitz
2005-10-13T01:04:16Z

On Wed, Oct 12, 2005 at 05:19:27PM -0700, Jim Blandy wrote:
> > This all screams out to me that we ought to be able to generate most of
> > the target-specific bits from cgen or somehow reuse existing simulator
> > interfaces. Now that'd be extra credit.
>
> *Exactly*. Machine-independent prologue analysis! If we had a
> machine description in CSDL or something like that, writing the
> prologue analyzer would probably require little more than indicating
> which instructions you wanted to recognize.

That's precisely my point: it's set up the other way round right now.
That calls for an interface in which common code logic calls out to
tdep code to process individual instructions, which is quite the
opposite way round from the target-analyzer-uses-utility-functions
that we've got here.

But I haven't looked at the M32C example yet; I will do that.

--
Daniel Jacobowitz
CodeSourcery, LLC