Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #135556
| From | Kragen Javier Sitaker <kragen@canonical.org> |
|---|---|
| Newsgroups | comp.lang.forth |
| Subject | Re: First result in riscv optimiser |
| Date | 2026-09-04 13:14 -0300 |
| Organization | Primarily biological and memetic |
| Message-ID | <87ecf96ljg.fsf@debian> (permalink) |
| References | <nnd$172defd2$1b2df6f6@e430673098f06a19> <2026Sep1.173341@mips.complang.tuwien.ac.at> |
anton@mips.complang.tuwien.ac.at (Anton Ertl) writes: > (...) in general I don't think that full constant folding will trigger > often, but partial constant folding (e.g., optimizing "5 -" into lit+ > with the immediate argument -5) is probably relatively frequent, and > occasionally, constant folding works in cases where a much > heavier-weight optimization would otherwise be needed. This is contextual. I have no doubt that you are correct in the case of GForth, but in some compilers, constant folding is one of the most important and frequently used optimizations. But that’s because they’re doing inlining and/or specialization, which create lots more constants to fold, and dead-code elimination, which prunes conditionals that are resolved at compile time by constant folding. I don’t know enough about ciforth to guess how important it will be in the ciforth context. Kragen
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
First result in riscv optimiser albert@spenarnc.xs4all.nl - 2026-09-01 10:49 +0200
Re: First result in riscv optimiser anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2026-09-01 15:33 +0000
Re: First result in riscv optimiser albert@spenarnc.xs4all.nl - 2026-09-01 18:54 +0200
Re: First result in riscv optimiser albert@spenarnc.xs4all.nl - 2026-09-02 11:18 +0200
Re: First result in riscv optimiser Kragen Javier Sitaker <kragen@canonical.org> - 2026-09-04 13:14 -0300
Re: First result in riscv optimiser albert@spenarnc.xs4all.nl - 2026-09-05 13:06 +0200
Re: First result in riscv optimiser Kragen Javier Sitaker <kragen@canonical.org> - 2026-09-08 02:21 -0300
Re: First result in riscv optimiser albert@spenarnc.xs4all.nl - 2026-09-08 12:38 +0200
Re: First result in riscv optimiser Kragen Javier Sitaker <kragen@canonical.org> - 2026-09-11 07:50 -0300
Re: First result in riscv optimiser Paul Rubin <no.email@nospam.invalid> - 2026-09-11 17:09 -0700
Re: First result in riscv optimiser albert@spenarnc.xs4all.nl - 2026-09-13 14:03 +0200
Re: First result in riscv optimiser antispam@fricas.org (Waldek Hebisch) - 2026-09-13 02:53 +0000
csiph-web