If I write an asembly program to a one CPU, will it also run on the other brand?

What CPU is faster?Intel or amd (let's say both are 2Ghz processors. )

Recommended Answers

All 3 Replies

Each may have proprietary op codes, but for the most part they are bit-compatible. They both support the x86 instruction set. As for which one is faster, the answer is that "it depends". There are a lot of factors other than CPU core speed that impact performance, such as cache size/speed, memory bus speeds, CPU version, etc.


Each may have proprietary op codes

Did you mean there are different OPCODES for different processors? :O

If you are talking about the x86 architecture, there is no difference unless you are doing something very esoteric, like writing an operating system.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.