PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, September 12, 2022

[FIXED] why my .exe file works on another processor

 September 12, 2022     c++, cross-platform     No comments   

Issue

  1. I compiled my program on c++ in release, and then I sent the exe of this program to my friend who has an AMD processor but I have Intel. Why my .exe file works on his computer, although compiled programs works on concrete hardware and OS?
  2. How to write code to satisfy the requirements of hardware independence?
  3. where I can read about it?

Solution

Basically, you compiled the code for a x86 or x86_64 instruction set processor.

So it both works on the Intel and AMD processors because they're both x86 or x86_64 instruction set processors.

Where it may start to not work is when you compile for another instruction set like ARM.



Answered By - Léolol DB
Answer Checked By - David Goodson (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing