286 reputation
12
bio website
location Vancouver, Canada
age 50
visits member for 3 years, 9 months
seen Jun 26 at 21:57

Old school programmer, grew up building Altairs, various microcontrollers, writing assembler for almost everything, Device Drivers, BASIC, Pascal, FORTRAN, C, C++, Java, C#


Feb
24
awarded  Editor
Feb
24
comment What is the purpose of red zone?
edit and changed to rbp/rsp instead of ebp/esp since the red zone is only a part of the x86-64 ABI (although nothing prevents one from using the same technique with 32 bit registers; but no compilers do it that way today)
Feb
24
revised What is the purpose of red zone?
added 613 characters in body
Feb
24
comment What is the purpose of red zone?
It's not really the sub from esp that is the optimization, but since you no longer have to sub from esp, you can use esp as the base pointer (normally done by ebp) and use ebp for something else in the function code. Finally, because esp is now the base pointer, the code can avoid saving and restoring ebp in the prologue/epilogue. I'll clarify the answer with this extra information
Feb
24
answered What is the purpose of red zone?
Feb
19
comment Pythonic design for controlling multiple devices through an I2C bus
I think you'll end up with a clean code base and very easy to use. I am all for generic interfaces where possible, I just didn't think it made sense here. Cheers and good luck!
Feb
18
awarded  Yearling
Feb
18
answered Pythonic design for controlling multiple devices through an I2C bus
Oct
15
awarded  Teacher
Oct
15
answered What are the best documentation patterns?