On Sat, 4 Sep 1999, Philip Blundell wrote:

> >I'm wondering if you considered this option for Thumb:  In the instruction
> >slot immediately following the SWI, place a 16-bit comment field.  Then
> >have the SWI handler step over it to return to the instruction slot
> >following the extra comment field.  How would that stack up?  Just a
> >thought.
> 
> Well, it's certainly a possibility but it doesn't seem that attractive.  Are 
> there any particular advantages you can think of to that approach?

I was just thinking of code density, and symmetry with ARM mode to some
extent.  It results in a total 24-bit comment field, and it doesn't need
any instructions in the calling code to load a register with an immediate
value.  Then again, maybe SWIs aren't very common if they all live inside
wrapper functions in libc.  I'm wondering how the performance would
compare when you take into account settting up r12 or whatever.

Cheers,

- Ben.

-------------------------------------------------------------------
Ben Williamson       [EMAIL PROTECTED]     http://www.pobox.com/~benw/



unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]

Reply via email to