​ ​ ​ ​ Is there any C Compiler (free or paid) for PICAXE ?
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 19

Thread: Is there any C Compiler (free or paid) for PICAXE ?

  1. #1
    New Member
    Join Date
    Jun 2012
    Location
    India
    Posts
    24

    Default Is there any C Compiler (free or paid) for PICAXE ?

    Is there any C Compiler (free or paid) for PICAXE ?

  2. #2
    Moderator
    Join Date
    Mar 2008
    Location
    Western Australia
    Posts
    12,206

    Default

    Not that I am aware of.
    westaust55

    Hey Hamlet, 2B OR NOT 2B = $FF

  3. #3
    Senior Member
    Join Date
    Feb 2010
    Location
    Don't Mess With My Texas!
    Posts
    2,197

    Default

    Why would anyone convert Basic into "C"?
    - Tex
    __________________________________________________ _______________________
    "Truth lies dormant in our future history." ― Tex Clodhopper LXV
    “Confidence is ignorance. If you're feeling cocky, it's because there's something you don't know.” ― Eoin Colfer, Artemis Fowl

  4. #4
    Technical Support
    Join Date
    Jan 1970
    Location
    UK
    Posts
    23,741

    Default

    No, there is no known C compiler for PICAXE.

    The best one could do is automatically translate C to PICAXE Basic and compile that. That would allow only a limited subset of C which many would say could not really be called C and would likely not deliver whatever it was hoped using C would provide for.

    Something could probably be done but the limitations and effort involved would probably outweigh any gains it could offer.

    If you have some code in C you would like to port to PICAXE Basic, members here will likely be able to help with that if it is not too complicated or too much, will at least be able to offer suggestions for how such porting should best be approached.

  5. #5

    Default

    Here is what I did FWIW:

    For about $50, you can buy a PICKIT 3 programmer...this is the Flash Programmer necessary to put code onto "raw" PIC chips (not PICAXE). From there, you can download (for Free) Microchip's "MPLAB-X" and the "XC-8" compiler (MPLAB-X is the development environment, and XC-8 is the C-compiler for 8-bit micros). Then, I found a program called, "Tiny PIC Bootloader" or something along those lines...it's a small serial bootloader that you can flash onto a raw PIC with the PICKIT3. Once that's done, you have a PIC chip that has a serial bootloader (similar to PICAXE) which you can load with FTDI cables. Then, you can write your code in C using MPLAB...compile it, and use the bootloader program to push that compiled code to the chip.

    You lose all the ease and abstraction from hardware that PICAXE provides, but you can program in C, and start to learn a little more about the bare-metal of the chip.

    I will say, the PICAXE support community is unmatched out there...when you go on the Microchip forum and ask a question, you'd better gird yourself for some rude (and unhelpful) answers...but again, it forces you to get into the datasheets, and see what makes these chips (and even the PICAXE) tick!

  6. #6
    Senior Member
    Join Date
    Sep 2016
    Location
    United Kingdom
    Posts
    711

    Default

    Great Cow Basic compiles pic and avr to hex which is faster than arduino c, https://sourceforge.net/p/gcbasic/bl...eat-cow-basic/

  7. #7
    Senior Member
    Join Date
    Sep 2016
    Location
    United Kingdom
    Posts
    711

    Default

    Why would anyone convert Basic into "C"?........ speed?

  8. #8

    Default

    Quote Originally Posted by stan74 View Post
    Why would anyone convert Basic into "C"?........ speed?
    I don't think OP is looking to convert Basic into C, I think OP is asking if there is a C programming environment for PICAXE.

    *Edit: Stan, I see you were just answering a question from above.
    Last edited by bpowell; 26-05-2017 at 22:13.

  9. #9
    Senior Member
    Join Date
    Feb 2011
    Location
    Cardiff,UK
    Posts
    4,198

    Default

    Quote Originally Posted by stan74 View Post
    Great Cow Basic compiles pic and avr to hex which is faster than arduino c, https://sourceforge.net/p/gcbasic/bl...eat-cow-basic/
    Well maybe, although the author of the video has a poor grasp of basic sums. The examples given that a basic compiler was "3 times, well almost" than an Arduino (C\C++) program. It was actually 2.43 times faster so a little more than two times faster.

    However its been said many times on here that how fast a program runs is often not a significant issue, its ease of use and simplified development that predominates.

    Great Cow Basic does initially sound attractive, its free, a complier so it should be fast, but easy to use ? Well not in my experience. I decided to try and do a complied version of a simple watchdog program I had for a 08M2 (12F1840). I eventually got it working, but it was a struggle and only after I corrected an error in the Great Cow Basic .dat file that was the definition for the particular PIC. Beginners stuff it was not.
    Last edited by srnet; 26-05-2017 at 23:37.
    Picaxe in Space is now Silent (but probably still running)
    http://www.50dollarsat.info/

  10. #10
    Member
    Join Date
    Jul 2010
    Location
    Colorado USA
    Posts
    92

    Default

    Quote Originally Posted by srnet View Post
    However its been said many times on here that how fast a proram runs is often not a significant issue, its ease of use and simplified development that predominates.
    You hit the nail on the head with that statement Sir..

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •