On 11/20/2012 10:00 AM, Jeremy Bennett wrote:
On Tue, 2012-11-20 at 09:28 +0100, Jonas Bonn wrote:
On Tue, 2012-11-20 at 08:11 +0000, Jeremy Bennett wrote:
On Tue, 2012-11-20 at 08:50 +0100, Jonas Bonn wrote:

This means we put X in r3 going into the function call and get X in r11
coming out... what's the point?


Which ABI's have you been looking at?  How do they handle return
values... do they have a dedicated RV register or do they return the
function result in the same register as the first parameter?

A good point. A quick look shows Epiphany, ARC and ARM also use the
argument registers as result registers. Do we want to change our ABI
this much?

No, we don't want to change at this point... we've got r11 as the return value and that's what we're "stuck" with (it's not a bad thing).

/Jonas

_______________________________________________
OpenRISC mailing list
[email protected]
http://lists.openrisc.net/listinfo/openrisc

Reply via email to