[OpenBIOS] [commit] r915 - trunk/openbios-devel/arch/sparc32

Artyom Tarasenko atar4qemu at gmail.com
Tue Oct 19 12:16:05 CEST 2010


On Tue, Oct 19, 2010 at 11:57 AM, Mark Cave-Ayland
<mark.cave-ayland at siriusit.co.uk> wrote:
> Artyom Tarasenko wrote:
>
>> Why do you think it's up to 5, and not just always 5?
>
> Mainly by looking at the Forth; it seems that all the code snippets I've
> seen expect the stack to be preserved. Otherwise if we always push all 5
> arguments, we'll end up with an excess of 0s being built-up on the stack by
> every call.

I agree that the stack should be preserved, but why not just do it
literary by throwing away unused arguments?
In the current implementation there is no way to pass 0 as the last
argument. Do you think it's ok?

>
> ATB,
>
> Mark.
>
> --
> Mark Cave-Ayland - Senior Technical Architect
> PostgreSQL - PostGIS
> Sirius Corporation plc - control through freedom
> http://www.siriusit.co.uk
> t: +44 870 608 0063
>
> Sirius Labs: http://www.siriusit.co.uk/labs
>
> --
> OpenBIOS                 http://openbios.org/
> Mailinglist:  http://lists.openbios.org/mailman/listinfo
> Free your System - May the Forth be with you
>



-- 
Regards,
Artyom Tarasenko

solaris/sparc under qemu blog: http://tyom.blogspot.com/



More information about the OpenBIOS mailing list