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

  • Home
  • SEARCH
  • 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 952227
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T23:51:35+00:00 2026-05-15T23:51:35+00:00

Many embedded engineers use c++, but some argue it’s bad because it’s object oriented?

  • 0

Many embedded engineers use c++, but some argue it’s bad because it’s “object oriented”?

Is it true that being object oriented makes it bad for embedded systems, and if so, why is that really the case?

Edit: Here’s a quick reference for those who asked:

so we
prefer people not to use divide …, malloc …, or other object
oriented practice that carry large
penalty.

I guess the question is are objects considered heavyweight in the context of an embedded system? Some of the answers here suggest they are and some suggest they’re not.

  • 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-15T23:51:36+00:00Added an answer on May 15, 2026 at 11:51 pm

    Whilst I’m not sure it answers your question, I can summarise the reasons my previous companies source code was pure C.

    It’s firstly worth summarising the situation:

    • we wanted to write a large amount of “core” code that would be highly portable across a large number of ARM embedded systems (mostly mid-range mobile phones; both smart phones and ones running RTOSs of various ages)
    • the platforms generally had a workable C compiler, though some for example didn’t support floating point “double”s.
    • in some cases the platform had a reasonable implementation of the standard library, but in many cases it didn’t.
    • a C++ compiler was not available on most platforms, and where it was available support for the C++ standard library, STL or exceptions was highly variable.
    • debuggers often weren’t available (a serial port you could send debug printfs to was considered a luxury)
    • we always had access to a reasonable amount of memory, but often not to a reasonable malloc() implementation

    Given that, we worked entirely in C, and even then only a restricted set of C 89. The resulting code was highly portable. We often used object orientated concepts though.

    These days “embedded” is a very wide definition. It covers everything from 8 bit microprocessors with no RAM or C compilers upto what are essentially high end PCs (albeit not running Microsoft Windows) – I don’t know where your project/company sits in that range.

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

Sidebar

Ask A Question

Stats

  • Questions 500k
  • Answers 500k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You can sort out IE by also adding e.preventDefault() to… May 16, 2026 at 2:00 pm
  • Editorial Team
    Editorial Team added an answer host_info isn't a method, it's a property of the object.… May 16, 2026 at 2:00 pm
  • Editorial Team
    Editorial Team added an answer If I understand correctly, the problem is the line: self.view.frame=tmpFrame;… May 16, 2026 at 2:00 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

assume that i have a BlogPost model with zero-to-many embedded Comment documents. can i
I need to produce an embedded ARM design that has requirements to do many
I am developing a survey invitation that can be embedded in many sites. To
In many embedded applications there is a tradeoff between making the code very efficient
I have a class with many embedded assets. Within the class, I would like
My actual UITextField control is embedded many layers down in an external library. Therefore
I am making a c# windows app that has one MainForm and many User
It seems that applets are a lot easier to develop in many cases. In
I work on a C# client application ( SlimTune Profiler ) that uses relational
for the embedded MIPS-based platform I'm implementing a small program to poll GPIO, i.e.

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.