What compiler do you use for your microcontrollers?

  • Thread starter Thread starter Topher925
  • Start date Start date
  • Tags Tags
    Compiler
Click For Summary

Discussion Overview

The discussion revolves around the choice of compilers for programming microcontrollers, specifically focusing on PICs and AVRs. Participants share their experiences with various development tools and compilers, exploring both ease of use and functionality for advanced applications.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant reflects on their past experiences with PIC programming and expresses a preference for microBasik, while seeking recommendations for other suitable compilers that support newer 32-bit and DSP chips.
  • Another participant notes that AVRs are designed to work well with C, mentioning the availability of an ANSI C GCC port, and shares their experience with the CCS Compiler for PICs, highlighting its quirks.
  • A suggestion is made to consider Swordfish Basic for the PIC 18 series or BoostC for the 16 and 18 series, emphasizing the availability of free versions and ease of use for those familiar with modular basic.
  • One participant discusses their growing comfort with reading C code and the necessity of learning it due to the prevalence of C in development tools, while expressing concerns about RAM limitations in Swordfish and the potential need for a more robust compiler for larger projects.
  • The same participant mentions interest in AVR32 chips for their DSP library, but raises concerns about the lack of a full debugger and the cost of necessary programming tools, while noting the availability of free development tools and good support for AVR chips.

Areas of Agreement / Disagreement

Participants express a variety of preferences and experiences with different compilers and microcontrollers, indicating that multiple competing views remain regarding the best tools for programming microcontrollers.

Contextual Notes

Some participants highlight limitations related to compiler capabilities, such as RAM size and debugging options, which may affect their choice of tools. There is also mention of varying standards in C compilers for PICs, which could influence user experience.

Topher925
Messages
1,563
Reaction score
7
I originally got into electronics by trying to learn to program PICs, but then I stopped and moved onto PICAxe and other "easy to use" development tools. Now I'm requiring a little more advanced tools and looking to at learning PICs (or maybe AVRs, haven't decided) again. One thing I remember is how much a pain using MPLAB used to be. I've used microBasik before and really liked it, so I think I might go that route. Are there are any other good compilers out there I could use? I would prefer something that is capable of utilizing some of the newer 32bit and DSP chips as well.
 
Computer science news on Phys.org
AVRs were designed, from the outset, to be C machines. As such, there's ANSI C GCC port, and not the varying less-or-more standard C variants out there for PiCs (I will say that the CCS Compiler was pretty decent once you figured out the quirks, but I hadn't used the official Cxx compiler that Microchip puts out). The el-cheapo AVR-ISP mkII in-circuit programmer is good across the line.

I'm not sure that ATMEL has a DSP equivalent, or if Microchip has an official inexpensive programmer good across most of its lines, however (to give balance to the above, and partially answer some of the other questions)
 
If you decide to go with pics then I would look at Swordfish Basic for the 18 series or BoostC for 16 and 18 series. Both have free versions and if you're familiar with modular basic then Swordfish is brilliant.

Mike.
 
I've been looking through some sample C code and found that I now have really no difficulty reading it, although I can't write it off the top of my head. Since 95% of the development tools out there are C I guess its about time I learned it.

Swordfish does look pretty cool, but I don't like the idea of the limited RAM size for compiling. In the past I've also found so called "full basic compilers" to be not quite so full. In the future, my programs will probably get pretty big and I don't to be strong armed into buying or learning a new compiler. I've been looking closely at the AVR32 chips and I think I might go that route since they contain an entire DSP library. I'm still kind of on the fence as they use direct USB programming, but unfortunately lack a full debugger, unless you get the JTAGICE mkII or AVR ONE! which are both very expensive. However, AVR Studio32 and all other development tools are completely free and the chips are fairly priced. But most importantly of all, their chips look to be well supported.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
Replies
10
Views
5K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K
Replies
1
Views
8K
  • · Replies 12 ·
Replies
12
Views
12K
  • · Replies 2 ·
Replies
2
Views
2K