News

In my 20 years of C/C++ programming, I’ve had to use a pointer to a function in almost every project. I don’t even recall the circumstances where it would not make a huge un-testable mess ...
[Edited for Sanity and for Typos]Ok, my assignment is to write a mixed c++/nasm program.This is the example code my Professor provided to me, which I have already deviated from but shows what the ...
And by that logic, if we can do something like some_function(&regular_variable) in C, i.e. pass a pointer as parameter to a function, we should be able to do the same with registers.
You simply cannot guarantee correct behaviour when you do this. You have guarantee how the ABI is going to pass arguments to functions. If it happens to store the return pointer at the top of the ...