In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote: Capt. Quirk, Like Jon said, sx/b 2.0 is not multithreaded. Pjv's multithread model is not easy to implement in basic because it requires many resources (think local stacks to preserve context). Like Jon, I too think that it is too difficult to ever make that happen. Sx/b 2.0 does support tasks and these behave like many basic's ON INTERVAL GOSUB statements. The framework Jon mentioned is a work in progress. It uses some sx/b 2.0 features but is mostly encoded in assembly. That's probably also the reason why Jon has a hard time to understand that code. My goal is to put it in library files with sx/b wrapper functions so you just need to include a library and call some sx/b function. Biggest problem still is how to filter out unused pieces of library code. That should be done in a consistent way so that you can easily write your own libraries as well. My libraries currently are targeted towards installable VP code, but you can also have pure sx/b libraries for math functions or whatever. The design of library files is independant of sx/b compiler design, so when sx/b 2.0 is released, I can post the framework so the library design can be discussed and improved. regards peter ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=297295#m297333 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)