3 ms·
The author made a small mistake in this article which may be worth pointing out: -fno-rtti does not disable the generation of vtables (which would break virtual
by swift 9y ago
The author made a small mistake in this article which may be worth pointing out: -fno-rtti does not disable the generation of vtables (which would break virtual method dispatch) but only runtime type information. The two are connected in that RTTI is generally stored with an object's vtable, so objects with no virtual methods don't get it. The alternative would be to include a pointer to type information in all objects without a vtable, but the amount of memory this would require would be substantial, and it would break expectations about the size and memory layout of "plain old data" structs.
- jackiek 9y agoTrue, I will correct this in the article.