At 03:36 PM 8/2/01 -0700, you wrote: >Francisco wrote: > >>When you say that I don't have anything invested, well, I have >>already a lot of programing done with this demo (I guess I >>sill have five or four more days), and there are many features like >>I2C and RS232 on this prototype currently working with the >>C17 libraries. > >I understand. Some of the compilers offer extra functionality beyond >the C standard library. HI-TECH comes with various examples and >samples, as well as some extra functions (e.g. EEPROM read and >write). Not sure what it has for I2C and RS232 -- I usually roll my >own, sometiumes using their samples as a guide. This situation illustrates why some of us were beating Lawrence L. over the head with ANSI compatibility issues. If you write most of your code in conforming C, then you should be able to port it to another compiler (or even another processor) with minimal effort. (you will have to do the usual regression testing, of course) Unfortunately, most things that do something directly useful are not part of standard C, almost by definition. Extensions that tend to vary include methods of mixing ASM with C, ways of dealing with interrupts, directives to control memory space for given variables, higher level I/O functions, functions such as delay() etc. And even on the best microcontroller compilers you'll likely find a certain number of problems, unfortunately, if you do any serious programming. Best regards, =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Spehro Pefhany --"it's the network..." "The Journey is the reward" speff@interlog.com Info for manufacturers: http://www.trexon.com Embedded software/hardware/analog Info for designers: http://www.speff.com Contributions invited->The AVR-gcc FAQ is at: http://www.bluecollarlinux.com =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.