Re:The Cost of Exception Handling
by rustybolt on Saturday November 12, 2022 @03:21AM
(#33571207)
> Let us now assume that we hide the function definitions:
extern void construct(),
destruct();
> The generated code in that case becomes noticeably longer
This was hard for me to follow, but I think that when the function definitions are removed, the compiler no longer knows that the constructor can't throw an exception, so now it has to add exception handling code?
This was hard for me to follow, but I think that when the function definitions are removed, the compiler no longer knows that the constructor can't throw an exception, so now it has to add exception handling code?