In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote: What cc1b lacks are libraries. So I converted a few of my javelin classes to cc1b libraries. These are the standard string and character functions (stdlib.h, ctype.h and string.h) All libraries functions compile without error. I do not claim they are optimized so if anyone optimizes some functions, please report that. You can place those libraries in the cc1b installation directory, after which you can use (using string.h as example) #include <string.h> in your C source. Libraries are just C files, but all code is enclosed in #pragma library 1 //code goes here #pragma library 0 While finding out how libraries were to be created, I checked the math16.h library. It appears cc1b supports operator overloading. This is quite useful as that will allow us to use the + character to add two userdefined datatypes. I did that once for the javelin using the subjava package. (for example matrix math or complex numbers). Now I will try to convert my Virtual Peripheral library to cc1b. 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=204491#m204604 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)