|
|
|
|
|
by jlkjaoifnwlekfj
1659 days ago
|
|
> A first-year computer science student can tell you that the arguments get pushed onto the stack. In other words, a call to this 3GL function results in the following assembly pseudo code Are people this ignorant when it comes to C/C++ or any systems language?
ABI & calling conventions were introduced early in my C & C++ textbooks (age 13 btw, not even close to college years). |
|
(Semi-random tangent: the hardest bug I ever had the pleasure of debugging was when I discovered that the PLT glue code to load an entry into the PLT was unexpectedly clobbering a register that the calling convention said needed to be preserved. By very, very careful using non-default calling conventions across shared object boundaries!)