Re: Locals revisited

Liste des GroupesRevenir à cl forth 
Sujet : Re: Locals revisited
De : albert (at) *nospam* spenarnc.xs4all.nl
Groupes : comp.lang.forth
Date : 27. Mar 2025, 13:14:30
Autres entêtes
Organisation : KPN B.V.
Message-ID : <nnd$4f051809$788de889@38df761c48cc24f9>
References : 1 2 3
User-Agent : trn 4.0-test77 (Sep 1, 2010)
In article <2025Mar27.084835@mips.complang.tuwien.ac.at>,
Anton Ertl <anton@mips.complang.tuwien.ac.at> wrote:
Paul Rubin <no.email@nospam.invalid> writes:
albert@spenarnc.xs4all.nl writes:
(I get 30 registers in RISCV that can serve as a stack pointer.)
>
All 31 can serve as a stack pointer, but not all at the same time.
You want at least two registers for temporary values, for implementing
a word such as "+".  And you typically want to keep the top-of-stack
of many stacks in a register, too.  Or several stack items.
>
In some models of the RISCV, only 14, I think.
>
There is the E subspecification of the RISC-V specification with 16
registers.  I don't know if anybody has implemented this.
>
And in almost all
models, 8 of them are more efficient to address than the rest, because
of the compressed instruction format.
>
More efficient in code size.  In instruction execution, typically the
same speed.

The orange pi RV2 is a risc with 8 Gbyte at euro 64 with NVMe slots, wifi, sdcard,
gbyte internet, usb, hdmi, mipi etc. and still the 26 pin Raspberry 1 slot.

Worrying about code size is so seventies unless you are into 10 cent
riscv embedded soc's (see noforth).

>
- anton

Groetjes Albert
--
Temu exploits Christians: (Disclaimer, only 10 apostles)
Last Supper Acrylic Suncatcher - 15Cm Round Stained Glass- Style Wall
Art For Home, Office And Garden Decor - Perfect For Windows, Bars,
And Gifts For Friends Family And Colleagues.

Date Sujet#  Auteur
25 Mar 25 * Locals revisited12albert
26 Mar 25 `* Re: Locals revisited11Paul Rubin
27 Mar 25  +* Re: Locals revisited2mhx
27 Mar 25  i`- Stacks (was: Locals revisited)1Anton Ertl
27 Mar 25  +* Re: Locals revisited4Anton Ertl
27 Mar 25  i+- Re: Locals revisited1albert
27 Mar 25  i`* Re: Locals revisited2Paul Rubin
28 Mar 25  i `- Re: Locals revisited1Anton Ertl
28 Mar 25  `* Re: Locals revisited4dxf
30 Mar 25   `* Re: Locals revisited3dxf
30 Mar 25    `* Re: Locals revisited2dxf
31 Mar 25     `- Re: Locals revisited1sjack

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal