[Oberon] NAstrobe for RISC5 on Pepino
andreas_pirklbauer at yahoo.com
Thu Aug 2 15:02:16 CEST 2018
> For the complete story refer to Chapter 12.2 'Addressing of
> variables' in the second part of 'Compiler Construction':
> Compiler Construction > Chapters 9 - 16
which is what I read prior to posting my question ;-) In any case,
however we the wires are crossed, the basic idea seems pretty clear:
1) No access to intermediate objects => no need for a static link
2) Frame size known at compile time => no need for a dynamic link (and FP)
Thus, we are left with the stack pointer SP, and that’s all there ever is. Pristine.
PS: When I first learned about compiler construction (Modula-2 on 68000), we
used to say “just push static link (SL), return address (RA) and dynamic link (DL)".
Shame on me/us for not having questioned that back then..
More information about the Oberon