: exa1 1 1 + . ;
compilation 55sec (avrstudio window hidden)
run ~0.3sek

: exa2 1000 1000 3000 + - . ; 
compilation 78sec (avrstudio window hidden)
run ~0.3sek

Quite surprised the write to flash works with avrstudio
simulator(v4, b716). I have ~250 words more in flash then the basic
clean amforth 4.2 compilation. P

----- PŮVODNÍ ZPRÁVA -----
Od: "Kalus Michael" <[email protected]>
Komu: "Everything around amforth"
<[email protected]>
Předmět: Re: [Amforth-devel] Speed analysis..
Datum: 3.4.2011 - 10:04:25

> Hi.
> 
> pito wrote:
> > Hi, when running the amforth4.2 in simulator
> > I've observed
> > > following:
> > a) "1 1 + ." takes 42sec to calculate
> > b) "1000 1000 3000 + - ." takes 60sec to
> > calculate.
> > > Does it mean the amforth spends most of the time
> > with tokens lookup?
> > 
> Interpreting a commandline speeds up if you use a
> constant found in  
> the dictionary, as 1 or 2 or other constants you
> create. INTERPRET  
> tries to FIND a WORD first, if that fails, tries
> to convert it as a  
> NUMBER, and if that fails too you get an
> errormessage.
> 
> Try:
> : example1  1 1 + . ;
> : example2  1000 1000 + . ;
> What runtimes did you find now?
> 
> 
> Michael
> 
> 
> ------------------------------------------------------------------------------
> > Create and publish websites with WebMatrix
> Use the most popular FREE web apps or write code
> yourself; 
> WebMatrix provides all the features you need to
> develop and 
> publish your website.
> http://p.sf.net/sfu/ms-webmatrix-sf
> _______________________________________________
> Amforth-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/amforth-devel
> 


------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Amforth-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to