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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T16:17:45+00:00 2026-05-10T16:17:45+00:00

Whilst working on a recent project, I was visited by a customer QA representitive,

  • 0

Whilst working on a recent project, I was visited by a customer QA representitive, who asked me a question that I hadn’t really considered before:

How do you know that the compiler you are using generates machine code that matches the c code’s functionality exactly and that the compiler is fully deterministic?

To this question I had absolutely no reply as I have always taken the compiler for granted. It takes in code and spews out machine code. How can I go about and test that the compiler isn’t actually adding functionality that I haven’t asked it for? or even more dangerously implementing code in a slightly different manner to that which I expect?

I am aware that this is perhapse not really an issue for everyone, and indeed the answer might just be… ‘you’re over a barrel and deal with it’. However, when working in an embedded environment, you trust your compiler implicitly. How can I prove to myself and QA that I am right in doing so?

  • 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. 2026-05-10T16:17:46+00:00Added an answer on May 10, 2026 at 4:17 pm

    For safety critical embedded application certifying agencies require to satisfy the ‘proven-in-use’ requirement for the compiler. There are typically certain requirements (kind of like ‘hours of operation’) that need to be met and proven by detailed documentation. However, most people either cannot or don’t want to meet these requirements because it can be very difficult especially on your first project with a new target/compiler.

    One other approach is basically to NOT trust the compiler’s output at all. Any compiler and even language-dependent (Appendix G of the C-90 standard, anyone?) deficiencies need to be covered by a strict set of static analysis, unit- and coverage testing in addition to the later functional testing.

    A standard like MISRA-C can help to restrict the input to the compiler to a ‘safe’ subset of the C language. Another approach is to restrict the input to a compiler to a subset of a language and test what the output for the entire subset is. If our application is only built of components from the subset it is assumed to be known what the output of the compiler will be. The usually goes by ‘qualification of the compiler’.

    The goal of all of this is to be able to answer the QA representative’s question with ‘We don’t just rely on determinism of the compiler but this is the way we prove it…’.

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

Sidebar

Ask A Question

Stats

  • Questions 193k
  • Answers 193k
  • 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 Thanks for your answer Dave. I've tweaked the function a… May 12, 2026 at 6:39 pm
  • Editorial Team
    Editorial Team added an answer Take a look at SQL Compare and SQL Data Compare May 12, 2026 at 6:39 pm
  • Editorial Team
    Editorial Team added an answer Controlling the opacity of a window is offered by a… May 12, 2026 at 6:39 pm

Related Questions

Whilst working on a UI update for a client, I noticed the dates associated
Whilst working on some generally horrible Javascript code this morning, I came across the
I'm working on a query which returns numeric values (currency). Some of the values
We are working on a datawarehouse for a bank and have pretty much followed

Trending Tags

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

Top Members

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.