I recently rewrote some libc functions in assembler and for some of them (those that did not need any call or system call instructions, for example, strlen), I refused the prolog and epilog because my tests did not fail without it ( perhaps they were not complicated enough). During the review, someone told me that dropping them is a bad practice, but could not explain why.
So, do I encounter problems when I call asm functions that do not have a prolog / epilogue combination?
Is it useful to add it even if the stack does not require additional space?
If this is necessary for some reason, why the assembler (I used nasm) will not take care of this?
source
share