Article View: comp.lang.forth
Article #6Re: You cannot know how many cells a floating-point number takes?
From: Anton Ertl
Date: Wed, 07 Oct 2026 06:30
Date: Wed, 07 Oct 2026 06:30
19 lines
2124 bytes
2124 bytes
marcel hendrix <mhx@iae.nl> writes:
>Except for the FFL, I have yet to see the first useful library that
>needs to know the size of the FP stack.
My code for summing up an array needs an FP stack that is deeper than
8 elements for all but the smalles arrays for SHIFT-REDUCE-SUM; for
RECURSIVE-SUM, it checks the stack depth, and if it is small, the
higher levels of the evaluation move intermediate results from the FP
stack before calling the lower-level SUM<n> words which use up to 8 FP
stack items.
https://www.complang.tuwien.ac.at/forth/programs/pairwise-sum.4th
- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: https://forth-standard.org/
EuroForth 2026 CFP: http://www.euroforth.org/ef26/cfp.html
Technical Details
Message-ID:
<2026Oct7.083013@mips.complang.tuwien.ac.at>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11a28dj$1nh2c$1@dont-email.me> <11a2ioh$vi58$1@dont-email.me> <11a3873$2444s$1@dont-email.me> <2026Oct6.190644@mips.complang.tuwien.ac.at> <11a3dfa$12p0r$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: anton@mips.complang.tuwien.ac.at (Anton Ertl) Newsgroups: comp.lang.forth Subject: Re: You cannot know how many cells a floating-point number takes? Date: Wed, 07 Oct 2026 06:30:13 GMT Organization: Institut fuer Computersprachen, Technische Universitaet Wien Lines: 19 Message-ID: <2026Oct7.083013@mips.complang.tuwien.ac.at> References: <11a28dj$1nh2c$1@dont-email.me> <11a2ioh$vi58$1@dont-email.me> <11a3873$2444s$1@dont-email.me> <2026Oct6.190644@mips.complang.tuwien.ac.at> <11a3dfa$12p0r$1@dont-email.me> Injection-Date: Wed, 07 Oct 2026 06:59:52 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2739401"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Ie1vqaQW1QMs0k3YwUpTF"; posting-host="0d602625e1788155471720f12e357c3f" Cancel-Lock: sha1:Kv+7Gaq9ALLnoLqhRV3uuudurp0= sha256:m896rMKXQiQxG9036nrQcKIbs1LotxJPAz1Ago2uLwQ= sha1:R7oAZOmz8nqHuV68sG1jiczTt9E= sha256:gPQpbqZobspVnMs4eYywaekVxQqOJ890kAoS9QKzPk8= X-newsreader: xrn 10.11