New answers tagged computer-architecture
-1
votes
Can computers only add?
you can get the min and the max by adding, you can also multiply by adding, a computer that just uses add and take is a really good one, because its atune to what voltage does when you add it to a ...
0
votes
On a micro-architectural level, why is using a temporary variable faster than using XOR to swap two variables?
It may be because we can extract ILP from instructions with temp variable as there are false dependencies.
The one with xor has RAW dependencies.
1
vote
On a micro-architectural level, why is using a temporary variable faster than using XOR to swap two variables?
Every version of your code invokes undefined behaviour, therefore the compiler is free to produce any code it wants. No conclusions can be drawn.
Top 50 recent answers are included
Related Tags
computer-architecture × 1163cpu × 169
cpu-cache × 132
memory-hardware × 99
operating-systems × 88
cpu-pipelines × 79
memory-access × 61
memory-management × 56
mips × 36
terminology × 34
arithmetic × 34
parallel-computing × 33
virtual-memory × 28
digital-circuits × 25
logic × 22
compilers × 22
cache × 20
floating-point × 19
assembly × 19
computation-models × 17
performance × 17
algorithms × 16
turing-machines × 15
programming-languages × 15
memory-allocation × 15