element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Embedded and Microcontrollers
  • Technologies
  • More
Embedded and Microcontrollers
Polls Favorite microcontroller language?
  • Blog
  • Forum
  • Documents
  • Quiz
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Embedded and Microcontrollers to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Engagement
  • Author Author: neuromodulator
  • Date Created: 20 Oct 2018 7:22 PM Date Created
  • Last Updated Last Updated: 11 Oct 2021 2:58 PM
  • Views 1877 views
  • Likes 1 like
  • Comments 12 comments
Related
Recommended

Favorite microcontroller language?

I like C++ a lot, specifically I love OOP and the STL. If I had to write everything in plain C I would end up writing a lot of boilerplate code ('\0' supporting strings structures and functions; and container-alike structures and functions), time I would rather like to spend on the system functionality. Still, C++ is not well supported on microcontroller, as plain C has been the defacto for a long time.

 

What is your favourite language when programming microcontrollers and why?

  • Share
  • History
  • More
  • Cancel
  • Sign in to reply

Top Comments

  • shabaz
    shabaz over 6 years ago +7
    Hi! I think for most people the beginner language might still be C with just a bit of C++ (i.e. just classes), since this is what the Arduino IDE and many example programs for Arduino use far as I can…
  • genebren
    genebren over 6 years ago +6
    I mostly use C, but I will drop down to assembly for critical timing needs.
  • glennvanderveer
    glennvanderveer over 6 years ago +6
    I am also an old school programmer from a time when RAM/ROM were at a premium and C and assembly were the only way to make programs fit and run with the limited resources...
Parents
  • shabaz
    shabaz over 6 years ago

    Hi!

    I think for most people the beginner language might still be C with just a bit of C++ (i.e. just classes), since this is what the Arduino IDE and many example programs for Arduino use far as I can tell (I don't use Arduino much). Lots of people start with Arduino it seems.

    Similarly, mbed provides this too. The newer programmers (learning with say micro:bit) have the option of Python, scratch etc., since that is supported in the online development environment for micro:bit and some other boards too.

    For me, I like C with a bit of C++ for microcontrollers too. But it could change, since there is now massive amounts of resources on a microcontroller in comparison to a decade ago.

    But when writing an application for an SBC (e.g. Pi, BBB) running Linux, then I think the time has gone to write everything in C or C++ these days, because other languages make you more productive. Speed could be a concern of course, and then there are some choices to be made, e.g. drop down to a lower-level language like C++, or choose a different processor/SBC or do some offload, all depending on the task-at-hand. Sometimes I'll write bits in C++, and write the rest in some other language (JavaScript for me usually, but I'm experimenting more and more with Python - still not my favourite language, but if it works and gets me results then I'm willing to spend time learning it). From my perspective that is the best of both worlds, speed&familiarity with C or C++, and speed of development for the non-time-sensitive parts of the application with JavaScript or Python.

    A similar thing is possible with microcontrollers; script using (say) LUA, write the rest in C perhaps. I've not used LUA so far though, but I intend to sometime.

    • Cancel
    • Vote Up +7 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • shabaz
    shabaz over 6 years ago

    Hi!

    I think for most people the beginner language might still be C with just a bit of C++ (i.e. just classes), since this is what the Arduino IDE and many example programs for Arduino use far as I can tell (I don't use Arduino much). Lots of people start with Arduino it seems.

    Similarly, mbed provides this too. The newer programmers (learning with say micro:bit) have the option of Python, scratch etc., since that is supported in the online development environment for micro:bit and some other boards too.

    For me, I like C with a bit of C++ for microcontrollers too. But it could change, since there is now massive amounts of resources on a microcontroller in comparison to a decade ago.

    But when writing an application for an SBC (e.g. Pi, BBB) running Linux, then I think the time has gone to write everything in C or C++ these days, because other languages make you more productive. Speed could be a concern of course, and then there are some choices to be made, e.g. drop down to a lower-level language like C++, or choose a different processor/SBC or do some offload, all depending on the task-at-hand. Sometimes I'll write bits in C++, and write the rest in some other language (JavaScript for me usually, but I'm experimenting more and more with Python - still not my favourite language, but if it works and gets me results then I'm willing to spend time learning it). From my perspective that is the best of both worlds, speed&familiarity with C or C++, and speed of development for the non-time-sensitive parts of the application with JavaScript or Python.

    A similar thing is possible with microcontrollers; script using (say) LUA, write the rest in C perhaps. I've not used LUA so far though, but I intend to sometime.

    • Cancel
    • Vote Up +7 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube