2 ms·
> For instance, in C, every function has a unique, global name. That means the implementation in the compiler can be a hash-table from string to implementation.
by woodruffw 5y ago
> For instance, in C, every function has a unique, global name. That means the implementation in the compiler can be a hash-table from string to implementation.
If only we were so lucky ;). Symbols are not unique across the translation unit boundary, which is why we have C’s mess of fake namespace hacks. Even `static` doesn’t save the linker from doing extra work —- check out the locally bound symbols in one of your ELFs sometime! You’ll probably find some duplicates.