|
|
Subscribe / Log in / New account

Program names and "pollution"

Program names and "pollution"

Posted Apr 11, 2019 9:14 UTC (Thu) by mgedmin (subscriber, #34497)
In reply to: Program names and "pollution" by anselm
Parent article: Program names and "pollution"

Wasn't it a linker limitation originally? 6 characters per name, plus C name mangling prepended an underscore for some reason, so _creat was the longest you could have at the linker level.


to post comments

Program names and "pollution"

Posted Apr 11, 2019 19:42 UTC (Thu) by jengelh (guest, #33263) [Link]

>Wasn't it a linker limitation originally? 6 characters per name,

There is the "localtime" call in V7 (at least whatever copy I could grab off github), which is way above 6 characters.

Program names and "pollution"

Posted Apr 11, 2019 19:51 UTC (Thu) by jengelh (guest, #33263) [Link] (1 responses)

>Wasn't it a linker limitation originally? 6 characters per name,

And as for V1, there is the "putchar" function.

Program names and "pollution"

Posted Apr 12, 2019 1:08 UTC (Fri) by neilbrown (subscriber, #359) [Link]

> And as for V1, there is the "putchar" function.

Was there?? I thought "putchar" was a macro for fputc(c, stdout), but I haven't checked V1. Rules for macro names would be different from those for linker symbols.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds