| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | Newsletters | VB Forums | Developer.com |
|
|||||||
| Assembly Questions and Answers for Assembly here! |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Intel and AMD
From what I hear, AMD is a clone of Intel. Does that mean that assembly that executes fine on Intel will work just as well on AMD? Sorry if this question has been asked already...
__________________
Here are the rules, you must obey them or the gender bender will get you. And if you ever think of posting without code-tags, the evil monkey will come after you. |
|
#2
|
|||
|
|||
|
Re: Intel and AMD
It may be slower but it will run, unless you use optimizations that are specific to intel or amd.
__________________
I never travel without my diary. One should always have something sensational to read. |
|
#3
|
|||
|
|||
|
Re: Intel and AMD
If you do not use AMD specific instruction extensions, there won't be a conflict.
|
|
#4
|
||||
|
||||
|
Re: Intel and AMD
Quote:
__________________
I am not offering technical guidiance via email or IM Come on share your photo with us! CG members photo album! Use the Code Tags! |
|
#5
|
|||
|
|||
|
Re: Intel and AMD
Just think a bit.
Have you ever seen versions of software thart was specific to AMD or Intel? In other words, have you ever seen software that requires either an AMD or Intel processor? Well, maybe. If so, then they require a specific processor due to some extra features of the specific processor, but if so, then it is rare. As far as I know, at least 99% of all Pentium software works with either Intel or AMD. |
|
#6
|
|||
|
|||
|
Re: Intel and AMD
Quote:
So did IBM contract with Intel to build the processor designed by IBM for the PC? |
|
#7
|
|||
|
|||
|
Re: Intel and AMD
Quote:
__________________
Here are the rules, you must obey them or the gender bender will get you. And if you ever think of posting without code-tags, the evil monkey will come after you. |
|
#8
|
|||
|
|||
|
Re: Intel and AMD
I have not done a lot of assembler programming, but I have done some; both for Intel processors and for old-style big IBM "Mainframe" processors. I am familiar with what compilers and linkers do, and what happens during execution. I don't say that to brag; I am trying to avoid making you feel bad for not being familiar with those things. For me, it is very obvious that there is no difference between the machine instructions for AMD and Intel processors.
The output of a linker is dependent on the operating system. For a Linux system, I assume the output would be the same in terms of format, but the machine instructions would vary depending on the processor. The fundamental purpose of a linker is to combine files created by compilers; the files might have been created by the same compiler or they could be from different compilers (and an assembler of course). In most environments, a linker is the only way to mix source code from more than one compiler into a single static link. A linker also allows multiple source files for a single compiler/assembler to be combined into a single executable. |
|
#9
|
||||
|
||||
|
Re: Intel and AMD
Quote:
__________________
I am not offering technical guidiance via email or IM Come on share your photo with us! CG members photo album! Use the Code Tags! |
|
#10
|
|||
|
|||
|
Re: Intel and AMD
Again, show us the specifications. I doubt the accuracy of most of what you are saying.
I searched the internet for "+7086 processor"; I did not see anything about a 7086 processor. So if can find anything about what you are talking about, then that will be interesting. |
|
#11
|
||||
|
||||
|
Re: Intel and AMD
Quote:
. Otherwise I cannot explain myself the "IBM Compatible" sticker my old 486 processor has ... If you can, please feel free to do so.
__________________
I am not offering technical guidiance via email or IM Come on share your photo with us! CG members photo album! Use the Code Tags! |
|
#12
|
||||
|
||||
|
Re: Intel and AMD
Quote:
http://www.alasir.com/x86ref/
__________________
I am not offering technical guidiance via email or IM Come on share your photo with us! CG members photo album! Use the Code Tags! |
|
#13
|
|||
|
|||
|
Re: Intel and AMD
As I said above, unless you use specific instructions related to intel or AMD your code will run. They both use the x86 language.
I also said that it might run slower. This is true when you move from one type of processor to another. Moving from intel to amd or even intel to a different chipset of intel. The reason I say this is some things work better on some processors then others. The reason is because of how the chip handles the instructions internally, some do some instructions good and some instructions bad. Things that may have been in fashion for a P2 may not be in fashion for a P4. The only instruction that I know of that you should avoid on any processor is "Div" or any form of it. Division instructions whore clock cycles like a *****. Even in high level languages I do work arounds for division when they are in loops to keep the compiler from spiting out a div instruction.
__________________
I never travel without my diary. One should always have something sensational to read. |
|
#14
|
|||
|
|||
|
Re: Intel and AMD
Quote:
Certainly when dividing by 2 or a power of 2, it is much more efficient to shift the bits, but that works only when it is known at design time what the denominator is. |
|
#15
|
||||
|
||||
|
Re: Intel and AMD
Yes the division is some quite of processor intensive. But implementing an ALU and divide this instruction several substraction made it quiet fast though. Don't forget the prefech unit that enhances the speed quite good. And it would be interesting to know if your instruction for dividing is faster than this one from the intel processor. I never looked to deep into this that I can say if the MMX clone of div is faster than the normal div/idiv. But most programmers use that if they need a faster division algorithm. Back to the topic of the clones: here you can find some old Intel x86 clones. Just scroll down to "5. Identifying CPU manufacturer through CPUID.". The old ones are these which don't are a link.
__________________
I am not offering technical guidiance via email or IM Come on share your photo with us! CG members photo album! Use the Code Tags! |
![]() |
| Bookmarks |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|