Skip to content

Exercise of creating TinyBasic working on the dedicated VM

Notifications You must be signed in to change notification settings

RodionGork/TinyBasic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TinyBasic

Simple implementation of Basic to controln Arduino Micro or STM32F103 mcus

Speed test

(current implementation optimizes interpretation of tokens, but does not hard link variables and labels yet)

simple code used:

10 x = 100000
20 if x%5000=0;print x
30 x = x-1
40 if x>=0; goto 20

i.e. about 4 statements per iteration

  • on STM32 with -O0: 10 sec
  • on STM32 with -O1: 6 sec
  • on STM32 with -O2: 5 sec
  • on STM32 with -O3: 4 sec
  • on Arduino Micro (x=30000): 7 sec (i.e. 23 for 100000)

i.e. roughly 100000 statements per second on STM32 achievable

About

Exercise of creating TinyBasic working on the dedicated VM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages