Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6953181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:26:45+00:00 2026-05-27T14:26:45+00:00

Possible Duplicate: Is there any reason to use C instead of C++ for embedded

  • 0

Possible Duplicate:
Is there any reason to use C instead of C++ for embedded development?

I’m very curious about this: Why is it that when we deal with microcontrollers, they prefer C instead of C++? Based on my researches, C and Assembly language is the usual programming language for these devices. I only know C++ and Assembly Language. So in this case, should I start learning C or stick with Assembly language and if so, what compiler should I use because I only know the Turbo Assembler.

Thanks and more power! 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T14:26:45+00:00Added an answer on May 27, 2026 at 2:26 pm

    C is more low-level and does just exactly what you say. It is more adapted to low-resources environments such as micro-controllers.

    C++ has some features which requires additional resources (such as OOP, exception, and so on).

    Moreover the micro-controller does not have the same features as your computer’s CPU. It could for example not support dynamic library loading and even for static libraries you’re limited in size as your chip doesn’t have many memory.

    Usually, micro-controllers expose special input/output library, and the stdlib is not always available.

    What you need is a cross-compiler for your micro-controller specifically.
    Then you can write your program in C and ASM.

    If the chip supports it, you can re-compile the stdlib to use the standard C features, and then you can eventually (once again if the chip has enough resources) build a C++ cross-compiler and then the STL. Then you will be able to build C++ program on your chip, but the program will weight much more than the original C program.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Why aren't static const floats allowed? Is there any reason why this
Possible Duplicate: C# member variable initialization; best practice? Is there any benefit to this:
Possible Duplicate: Why ‘this’ is a pointer and not a reference? Is there any
Possible Duplicate: Are there any O(1/n) algorithms? This just popped in my head for
Possible Duplicate: Is there any reason to modify the main.m file in your iOS
Possible Duplicate: Is there any reason to check for a NULL pointer before deleting?
Possible Duplicate: When do you use Java’s @Override annotation and why? Is there any
Possible Duplicate: Reference - What does this symbol mean in PHP? Is there any
Possible Duplicate: Cannot use ‘this’ in member initializer? Any ideas why I get an
Possible Duplicate: Create Generic method constraining T to an Enum Is there any reason

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.