[TUHS] Debugging help sought

John Cowan cowan at ccil.org
Sat Aug 8 03:11:46 AEST 2020

On Fri, Aug 7, 2020 at 12:07 PM Noel Chiappa <jnc at mercury.lcs.mit.edu>

IIRC, you could use longer names than that (in C), but external references
> only used the first 7 (in C - C symbols had a leading '_' tacked on; I
> used to
> know why), 8 (in assembler).

Precisely to avoid collisions between external names in C and names in
assembler (whose namespace was flat except for local labels) when they were
linked into your program.

For similar reasons, F77 names had a trailing '_' tacked on.

John Cowan          http://vrici.lojban.org/~cowan        cowan at ccil.org
There is / One art / No more / No less
To do / All things / With art- / -Lessness          --Piet Hein
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20200807/d55b56ed/attachment.htm>

More information about the TUHS mailing list