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 6538679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:45:51+00:00 2026-05-25T10:45:51+00:00

Does anyone know if there is any performance penalty if one compiles C code

  • 0

Does anyone know if there is any performance penalty if one compiles C code with C++ compiler?
I have a C like code and use MinGW C++ compiler. I’m using qmake to compile the project. If there is a performance gain if I switch the compiler to compile in C, I’ll have to update the code, there are some incompatibility with the syntax and want to know if it worth it.

Thanks.

  • 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-25T10:45:52+00:00Added an answer on May 25, 2026 at 10:45 am

    There should be very little, if any, performance difference, to the point that if there is a difference, it will be very nearly immeasurably small – assuming you’re using a C and C++ compiler from the same vendor or collection. Using a C compiler from one vendor and a C++ compiler from another will likely show larger differences, but only due to the fact that different vendors implement different optimization strategies.

    There are a small number of potential optimization opportunities that C++ calls for that C compilers may not natively support – but again, unless they’re from different vendors, the difference will be meaningless, and many compilers implement similar optimizations in both C++ and C compiler frontends.

    One exception to this is Microsoft’s compiler – Microsoft never made a C compiler, to my knowledge.

    Note: I am assuming that the code does not use C++-specific features like templates or classes.

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

Sidebar

Related Questions

Does anyone know whether there are any performance trade-offs/advantages to assigning an object's fields
Does anyone know if there's any benefit in 'minifying' locally-stored javascript code to squeeze
Does anyone know if there are any multi-line row grid controls for sale or
Does anyone know of any good tutorials on ADO.NET Entity Framework? There are a
Does anyone know of any issues (performance or otherwise) associated with a FILEGROWTH setting
Does anyone know whether there's a way to mock Entity Data Provider so Unit
Does anyone know if there is a c# Console app, similar to the Python
Does anyone know why there is no respond_to block for generated edit actions? Every
Does anyone know if there is a good equivalent to Java's Set collection in
Does anyone know if there's an add-in that does autocomplete for queries on SQL

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.