Sujet : Re: Avoid treating the stack as an array [Re: "Back & Forth" is back!]
De : stephen (at) *nospam* vfxforth.com (Stephen Pelc)
Groupes : comp.lang.forthDate : 16. Sep 2024, 13:19:25
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vc97od$2r97o$1@dont-email.me>
References : 1 2 3 4
User-Agent : Usenapp for MacOS
On 15 Sep 2024 at 23:45:22 CEST, "Paul Rubin" <
no.email@nospam.invalid> wrote:
Stephen Pelc <stephen@vfxforth.com> writes:
I would not make that trade off today.
So there's only one Stephen Pelc but two application domains.
I wonder how much effort de-localizing the TCP/IP stack took, compared
to hypothetically updating the compiler to optimize locals more. If the
TCP/IP stack code can compile with iForth or lxf, is there a way to
compare the code size with VFX's? I can understand wanting to use VFX
for actual delivery, of course.
On modern desktop CPUs, I would probably spend the effort on
optimising locals more. However, the ability to provide the address
of a local is essential in our world. I have not inspected our code
base to see how many uses of a local declaration of a buffer
: bah {: ... | FOO[ cell ] ... -- :}
there are compared to the use of the ADDR (address) operator
applied to a normally defined local
: bah {: ... | FOO ... -- :}
...
addr FOO
Local buffers are remarkably useful.
-- Stephen Pelc, stephen@vfxforth.comMicroProcessor Engineering, Ltd. - More Real, Less Time133 Hill Lane, Southampton SO15 5AF, Englandtel: +44 (0)78 0390 3612, +34 649 662 974http://www.mpeforth.com MPE website
http://www.vfxforth.com/downloads/VfxCommunity/ downloads