Shop OBEX P1 Docs P2 Docs Learn Events
C compiler — Parallax Forums

C compiler

RsadeikaRsadeika Posts: 3,840
edited 2008-05-22 21:28 in General Discussion
It has been quite a few months since we heard anything about the C compiler for the SX. Out of curiousity, what was the final outcome with it? I do not see Parallax selling it, so did it end up on the scrap heap?

Thanks

Ray

Comments

  • Ken GraceyKen Gracey Posts: 7,404
    edited 2008-05-06 22:56
    Hey Ray,

    I attempted to get a low-cost C compiler started with CCS but we had some difficulty getting the support from them needed to bring the product to market. We could be selling one right now, but in all honesty I didn't see it evolving appropriately to meet the demands of our customers.

    There was another C compiler developed by two forum members, but I have not checked in with them on the outcome.

    Ken Gracey
    Parallax, Inc.
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2008-05-06 23:40
    Ken, Ray,
    The other (free) compiler is CC1B. RW Senser created a package which makes
    it easy to work with.
    http://forums.parallax.com/showthread.php?p=673332

    As far as I recall there is only one outstanding bug and it has a workaround.
    The CC1B compiler generates a SASM source file so you can assemble it
    with the sxkey IDE and use SxSim.
    I have written several libraries for the CC1B which you will find in the above thread.

    regards peter
    ·
  • Capt. QuirkCapt. Quirk Posts: 872
    edited 2008-05-17 09:01
    Ken,

    How difficult is it to make a C tool chain, we can use with Eclipse?. The FIRSTies got me involved with programming the pic's with Eclipse and the C18 student version tool chain. Free, Free (Frankly I don't understand why anybody would buy a PIC C compiller for most apps)

    The built in features in Eclipse, are way better than anything (Mega $$) Microsoft VS has, and it's free. Check it out here· And a list of plug-ins available

    ·Quirkus

    Post Edited (Capt. Quirk) : 5/17/2008 6:17:41 PM GMT
  • pwillardpwillard Posts: 321
    edited 2008-05-19 11:49
    There might also be a way to use SDCC ( an open source multi device C compiler) with the SX's. It's open source so at least we can look at it and see if it's possible... using the PIC target code as an example. I have not looked at the code yet, but it seems a plausable path.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


    There's nothing like a new idea and a warm soldering iron.
  • DavidCaryDavidCary Posts: 2
    edited 2008-05-19 15:03
    "How difficult is it to make a C tool chain ... The FIRSTies got me involved with programming the pic's with Eclipse and the C18 student version tool chain."

    The PIC18F chips are specifically designed to be easy for a person to write a C compiler for it.

    Alas, the PIC16 architecture -- and the SX chips that took the PIC16 architecture and made several improvements -- have many quirks that make it much more difficult to write a C compiler for it.
    (But even the PIC16 is not quite as quirky as the 8051 or the RCA 1802. All three architectures were developed before the C language existed).

    I'm making a list of all programming languages supported on PIC or SX chips.
    There are several items in the "C or C++ for PIC" section.

    Please help me make that list even more useful -- by marking which ones are SX compatible.
    How far along is the port of SDCC to the SX chip?

    .. _wikibooks en.wikibooks.org/wiki/Embedded_Systems/PIC_Programming
    .. _massmind massmind.org/techref/microchip/language/cs.htm
    .. _SDCC sdcc.sourceforge.net/
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2008-05-19 15:06
  • Capt. QuirkCapt. Quirk Posts: 872
    edited 2008-05-22 21:28
    Here is an example of the files to create the link between C & eclipse
Sign In or Register to comment.