Re: Linux in Forth?



In article <1122329554.459051.79210@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Brad Eckert <nospaambrad1@xxxxxxxxxxxx> wrote:
>There seems to be a common experience of application-wide Forth being
>half the size of application-wide C after compilation. My intent was to
>provide an explanation as to why this is. Not whether it's important or
>outweighs other considerations.
>
>The notion of "Don't Care" states comes from Chuck. Hardware
>descriptions, as seen by a synthesis tool, start out as logic maps and
>get reduced to the simplest hardware possible. If you can put "don't
>care" states in the logic map, the reduction may be carried further and
>the final hardware is smaller.
>
>If you draw an analogy between hardware and software optimization,
>these "don't care" states also reduce final code size. This is a
>plausible explanation of the 2:1 code size reduction. Forthers don't
>have a syntax cop telling them they can't do this or that. It's a very
>Bohemian language. Perhaps good Forth code naturally exploits "don't
>care" states without the programmer explicitly setting out to do so.

I'd guess the difference between careless and careful programs
is much more than a factor 2, and well worth it.

>
>--
>Brad
>


--
--
Albert van der Horst,Oranjestr 8,3511 RA UTRECHT,THE NETHERLANDS
Economic growth -- like all pyramid schemes -- ultimately falters.
albert@xxxxxxxxxxxxxxxxxx http://home.hccnet.nl/a.w.m.van.der.horst
.



Relevant Pages

  • Re: Linux in Forth?
    ... The notion of "Don't Care" states comes from Chuck. ... get reduced to the simplest hardware possible. ... plausible explanation of the 2:1 code size reduction. ...
    (comp.lang.forth)
  • Re: An intelligent T.O. question (no moronic/racist responses please)
    ... > football players in the league, ... > Or maybe it's just Eagles fans or the city of Philadelphia. ... If T.O. is on my team, I don't care if he ... > still looking for something remotely approaching an explanation, ...
    (alt.sports.football.pro.phila-eagles)
  • Re: rebooting on own?
    ... but I took care of that" (and I really don't want to know how you ... monitor, mouse & keyboard connections. ... Check the temps with the BIOS hardware monitor settings to ... began) check out your HDD ...
    (microsoft.public.windowsxp.general)
  • Re: XP Pro activation - false positive
    ... Activation Widiot would care about a slave drive is the open question. ... My understanding of WPA is that the hardware ... >> slave a customer's hard drive onto my XP Pro SP2 workstation to pull the ... >> it was powered off so that I could copy salvaged data onto it. ...
    (microsoft.public.windowsxp.general)
  • Re: noodling request: Faustian bargains
    ... That's because I don't care what someone *did*, ... So I'd rather have an explanation than an apology: ... I don't have any objection to an explanation but I'd ... I didn't mean to offend you." ...
    (rec.arts.sf.composition)