<div dir="ltr"><div>I really find computer architecture interesting. But I'm taking the other approach that life is too short so I'm jumping in with the RISC V community.<br><br></div><div>Have you looked at some of the tiny Forth machines? eg. Swapforth and J1a.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Apr 14, 2024 at 2:07 PM Mark Atherton <<a href="mailto:markaren1@xtra.co.nz">markaren1@xtra.co.nz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Ha! I have already implemented RPN, and it works fine. This whole <br>
project is an experiment; interested to see what how far I can push <br>
things before the parser gets ugly.<br>
<br>
I guess then next step is to write a small compiler running on an x86, <br>
generating P-code to be run on a *tiny* interpreter on the machine (and <br>
its associated 128 word limit). There is plenty of micro-code space, so <br>
might be able to dream up some complex instructions to make the <br>
interpreter very small.<br>
<br>
Oh god, look what you have made me do now... :)<br>
<br>
<br>
On 4/14/2024 12:06 PM, Charles Manning wrote:<br>
> There is always an equivalent algorithm using arrays etc to make a <br>
> manual stack (ie. looping instead of function calling to get the <br>
> "recursion".).<br>
> <br>
> Sometimes that's all you've got. eg. Fortran 77 etc does not provide <br>
> recursion because it is not stack based (like C).<br>
> <br>
> Function calling recursion is a lot easier and cleaner though.<br>
> <br>
> Have you considered just saying sod it and using RPN for your assembler? <br>
> Well for a first cut anyway.<br>
<br>
<br>
_______________________________________________<br>
Chchrobotics mailing list <a href="mailto:Chchrobotics@lists.ourshack.com" target="_blank">Chchrobotics@lists.ourshack.com</a><br>
<a href="https://lists.ourshack.com/mailman/listinfo/chchrobotics" rel="noreferrer" target="_blank">https://lists.ourshack.com/mailman/listinfo/chchrobotics</a><br>
Mail Archives: <a href="http://lists.ourshack.com/pipermail/chchrobotics/" rel="noreferrer" target="_blank">http://lists.ourshack.com/pipermail/chchrobotics/</a><br>
Meetings usually 3rd Monday each month. See <a href="http://kiwibots.org" rel="noreferrer" target="_blank">http://kiwibots.org</a> for venue, directions and dates.<br>
When replying, please edit your Subject line to reflect new subjects.</blockquote></div>