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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T21:05:26+00:00 2026-06-05T21:05:26+00:00

I am new to C++. Recently a discussion started in my company around compiling

  • 0

I am new to C++. Recently a discussion started in my company around compiling code for different machine architectures such as X86_64 AMD Vs Intel

Now i looked at the gcc flags that we pass to compile our applications, and there is nothing that tells gcc to compile specifically for AMD vs Intel on x86_64.

Can someone please explain in technical terms the dependency between compiled code and machine architecture?

Can i compile code using gcc-86_64 on AMD and run the binary code on intel x86_64?

  • 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-05T21:05:28+00:00Added an answer on June 5, 2026 at 9:05 pm

    After the x86 32-bit processors, Intel wanted to move to 64-bit, and co-operated with HP to develop the 64-bit Itanium processor. Unfortunately, this was not very populare, since the instruction set and the architecture was rather different from x86.

    AMD jumped in and extended the know x86 architecture to 64-bit, first calling it EM64T, but then AMD64. Just like AMD had to follow Intel with 32-bit processors, Intel now had to follow AMD with the 64-bit processors, since AMD’s 64-bit architecture proved to be much more populare than the Itanium 64-bit processor.

    Of course, Intel doesn’t like it to be called AMD64, that’s why they call it x64, but essentially AMD64 and Intel’s x64 are compatible (except for some minor differences, see http://en.wikipedia.org/wiki/X86-64#Differences_between_AMD64_and_Intel_64). If you compile for x64 or AMD64, the generated code will avoid those differences so in practice you can run on both.

    In any case, try to avoid generating for Itanium (also called IA-64) because this is a totally different kind of processor.

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

Sidebar

Related Questions

I recently started a new position at a company that uses IBM's WebSphere Portal,
I started a new job recently. I've been a Java & XML web developer
Recently a new co-op was hired at our company and has been tasked to
HI all. I have started a new job recently where I am supposed to
I recently got a new dedicated MySQL machine. Now it's running fine, but sometimes
Started a new project recently and planned to use MVC 4. Made the mistake
I started a new project recently and am trying out the latest version of
I recently created a new discussion list in SharePoint for our group, and I
I recently downloaded new linux kernel source code and compiled on ubuntu. After my
I recently started a new webforms project and decided to separate the business classes

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.