Recently I rewrote some libc functions in assembly and for some of them (the one that didn't need any call or syscall instructions, like strlen), I discarded the prologue and epilogue because my tests didn't failed without it (maybe they were not complex enough). During peer review, someone told me it was bad practice to discard them, but couldn't explain me why.
So, am I running into problems when I call asm functions that don't have the prologue/epilogue combination?
Is it a good practice to add it even when no additionnal space is needed on the stack?
If mandatory for some reasons, why doesn't the assembler (I used nasm) take care of it?