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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:17:13+00:00 2026-06-17T21:17:13+00:00

Well, I’m starting at computer programming like c++ and c. I have a strong

  • 0

Well, I’m starting at computer programming like c++ and c. I have a strong question about processor architetures that will able me to understand better where my code will run.

So, let’s say I compile a c++ program. At this moment, it compiled to a assembly low level code. This code has the processor instructions to do my code. As every processor has a different set of instructions, I wanted to know where my code will run.
Like, I compile my programs at code blocks. How do I know if I’m compiling it for a 32-bits or 64-bits computer? Can I change it? What is the difference between two 32-bits processor, one is a i5, the other a pentium 4? (will my code run in the two processors?)

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-06-17T21:17:14+00:00Added an answer on June 17, 2026 at 9:17 pm

    How do I know if I’m compiling it for a 32-bits or 64-bits computer?

    You have to tell the compiler when you build your program. It probably has some defaults – check its documentation.

    Can I change it?

    Maybe, it depends on your compiler. If it has the necessary options, then yes. clang, for example, has a -arch flag.

    What is the difference between two 32-bits processor, one is a i5, the other a pentium 4?

    If both implement the same instruction set, then they’re practically equivalent for purposes of compiling your software. It’s possible that very machine-specific optimizations might work better on one or the other, though.

    will my code run in the two processors?

    In the case of the example you gave, probably yes.

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

Sidebar

Related Questions

Well the situation is bit more complicated than that ! I have a question
Well, i have such-like code that prevent select all action from keyboard: $(document).keydown(function(e){ //
well i have a configuration like this in the components part of my config
Well I have been thinking about this for a while, ever since I was
Well, let's say I have a php-script, that has some select box, and I
Well as the title says i have 2 web projects that have the same
Well the problem is that I have this enum, BUT I don't want the
well my problem is that, i have a form, which i want to validate
Well the problem is that I was using code like this: new Date().toJSON().slice(0, 10)
Well, first I know that this question was already asked several times. But I

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.