[Oberon] NAstrobe for RISC5 on Pepino

Tomas Kral thomas.kral at email.cz
Tue Aug 28 11:03:30 CEST 2018


On Thu, 2 Aug 2018 18:23:56 +0930
Chris Burrows <chris at cfbsoftware.com> wrote:

> You might be thinking of the local dynamic array extension that Wirth
> implemented in his ARM compiler and we support in the Astrobe for
> Cortex-M compilers e.g.
> 
> PROCEDURE P(s: ARRAY OF CHAR); 
> VAR 
>   local: ARRAY OF CHAR; 
> BEGIN 
>   NEW(local, LEN(s)); 
>   local := s;
> 
> The original discussion is here:
> 
> http://lists.inf.ethz.ch/pipermail/oberon/2017/011201.html

Hi,

Trying to revive this topic, as I come across, this rather old
`Oberon-2 journal'. My question is, with this extension of yours,
can we go for dynamic allocation as shown here below?

https://www.modulaware.com/mdltws.htm

That's allocating on the stack, right, and requires SF in addition to
SP, i.e. makes use of one more dedicated register?

Many thanks.

-- 
Tomas Kral <thomas.kral at email.cz>


More information about the Oberon mailing list