Hacker News new | ask | show | jobs
by jjnoakes 1489 days ago
If the compare function is inlined into the qsort() body, there wouldn't need to be any function call. I think that was the point of the question above.
1 comments

The way to answer this question is to look at the assembly code generated by the compiler with various optimization levels and see whether the compiler ever inlines the compare function.

https://godbolt.org/ might be useful for this exercise.

Did you reply to the right comment?