Programming

14 readers
1 users here now

For discussion of programming

See Also

founded 2 years ago
MODERATORS
1
2
3
4
submitted 6 months ago* (last edited 6 months ago) by [email protected] to c/[email protected]
4
5
2
Reptar (lock.cmpxchg8b.com)
submitted 1 year ago by [email protected] to c/[email protected]
6
7
3
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]
 
 

You have to know assembly for it to mean too much, but it helps to understand the history, which it gives a bit of on the page. Originally x86 had 8 16-bit registers, which are like variables. So if you wanted to have nine variables, you'd have to push one to the stack in RAM. When they switched to 64-bit, they also doubled the number to 16 64-bit registers. Now intel is doubling it again to 32 64-bit registers.

They're also adding a lot more functions to their assembly, but I haven't looked at them yet and those would be harder to explain. But if the CPU implements a function directly, that saves on cycles because you don't have to call multiple other functions to do the same thing.

8
9
10