With for..next and u/mod the test runs in 1.7 seconds. Yes the same code above. And with 16 Mhz. There is no mod word in dictionary in FF5. correction : it is not same code. 1.7 secs for the code in that article with u/mod drop.
I see now. But why you try to show FF slower by changing the bench code. If you look to comments in that article, the guy (who promotes his STM8EF or stm8 eforth) says that his eforth for stm8 is faster than FF but not in reality.
: bench ( n -- ) dup for r@ dup for dup r@ gcd drop next drop next drop ; ok this is 1.7 secs the original test in that article
Here, you wrote 1.7 secs. which is correct if I remember correctly :)
I think here, you used 8 Mhz. Because I see 1.7 secs with 16 Mhz with this code.And mod word is not in dictionary of FF5, there is u/mod. Regards, my blog : erolcum.blogspot.com
With for..next and u/mod the test runs in 1.7 seconds. Yes the same code above. And with 16 Mhz
Hello Mikael, You make a great job, firstly. You may know the answer possibly for my following question. There is a blog page written 10 years ago, and author says he measured 4 seconds for "200 bench" test (atmega328). But I measured 1.7 seconds with FF5.0. What may be the reason ? It's speed increased twice in 10 years ? https://weblambdazero.blogspot.com/2016/10/go-forth-with-arduino.html Regards, Erol
Wow, you're really fast!
I think you mention about Mikael's github : https://github.com/oh2aun/flashforth/tree/master/avr/FF-ATMEGA.X But every chip has different specs or peripherals, I think it is not an easy step as you think. He can answer your question if he wants
I wrote for the beginners like me. There is no need to set a line end delay for swdcom but it is only for linux. I used minicom for linux (my distro is Pardus 21.5) and 100msec line end delay is enough. (Ctrl+A then Z then T then D) Minicom also solves the ladder problem in terminal. (add linefeed) And you may use teraterm 5.0 for windows 11. You need to set msec/line in setup > serial port to 100. You can download from sourceforge.
Ok then which linux distro do you recommend to use e4thcom and st-flash ?
Hi Terry, Thank you for your answer. So my way is so easy :) I would like to ask your suggestions to learn usart and forth programming. For example, you may say "read the reference manual then study buffers" or you may say go to arduino ide :)
Hello dear masters, I am a newbie for forth. I downloaded the firmware from https://sourceforge.net/projects/mecrisp-stellaris-folkdoc/files/bluepill-128kb-usb.tar.gz I use usb socket (uart3) of board for hyperterminal connection on Windows. Hyperterminal has end of line delay, so it is working. How can I use uart1 and uart2 in forth ? For example, I get some data from uart1 (barcode reader) then send some data to label printer on uart2. Is there any sample forth code ?