In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: John, The biggest difference is that the PBASIC is interpeted and SX/B is compiled. PBASIC commands are converted to tokens and placed in EEPROM. Retrieving these token from EEPROM takes quite a bit of time. SX/B code is native processor instructions stored in processor flash memory. So simple commands (like A=5) will execute very fast with SX/B, but will be many times slower on a stamp. Complex timing commands have relativly little overhead on the stamp (because the time to retreive the command from eeprom is small compared to the time it takes to execute the command). 1) As mentioned above, it depends on what the code is doing. Bit-banging code for example will be hundreds of times faster in SX/B. Serial input or output code will be pretty much the same on both. 2) As above, the main difference is interpeted vs compiled code. 3) SX/B generates pretty tight code, but you could get better performance with assembly. 4) Because the stamp(PBASIC) must retreive tokens from the EEPROM, I don't see how it could be faster. 5) With proper SX code, yes you should be able to measure @ the clock frequency (13.333nSec @ 75MHz) resolution. You really are trying to compare apples to oranges though... Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=148639#m148659 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)