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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:56:43+00:00 2026-05-27T19:56:43+00:00

Some of us in my company are arguing about it. Given a source code

  • 0

Some of us in my company are arguing about it. Given a source code and a compiler (compiled with same flags/switches) is it possible that the compiler will create binaries that will have different behaviors in different OSes?

Concretely, we’ve a C# project that must be run in Windows XP and Windows 7, both 32 bit. The compiler is VS 2008. There is a solution file (*.sln) that contains all necessary files, assemblies, projects etc that we use to build the software.

Is it possible that if the code (the same solution file) is compiled in VS 2008 (with same flags/switches, as it is the same solution file) in XP will produce a binary which will have behavioral difference than the compiled binary in Windows 7?

By behavioral difference I mean, in a given situation…

  • The XP build will run as expected in XP
  • The Win 7 build will run as expected in Win 7
  • The XP build may cause a bug (may be a crash, or some unexpected behavior) in Win 7 and vice versa

The project is too huge to come up with a little test project. I want to know what are the cases (if any) when the above is true.

  • 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-27T19:56:44+00:00Added an answer on May 27, 2026 at 7:56 pm

    Given identical installations of VS2008, including service packs, and given identical frameworks, including service packs, on the test machines, the answer is no.

    However, this does not mean that there are not tasks that the application performs that will behave differently on the different operating systems.

    You must also consider that the operating system’s different responses to the application (firewall, DEP, UAC, etc) could expose flaws in the application on one operating system that are not present on another.

    And then there is the unmanaged code issue, which is another topic altogether. And, while we’re at it, native OS calls from your app could cause instability.

    But none of this is due to the compiler given the constraints in the opening sentence.

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

Sidebar

Related Questions

Looking through some old company code, I came across a for loop that looks
My company is beginning to write some code using Scala. I've been moved onto
My company (EU-based) is considering to release some parts of our code under a
As far as I know some company will use Devexpress to speed up the
I have models that belong to some 'group' (Company class). I want to add
My company's main application is mostly written in C++ (with some Delphi code and
I'm curious about keeping source code around reliably and securely for several years. From
Our company is using some software that ONLY accepts input from an Imaging Device
I have some packages com.company.testing.module1 com.company.testing.module2 com.company.testing.module3 I also have some classes that have
In some software company, who should be responsible for the UI design: User Designer

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.