Skip to contentSkip to conversation

Not a typewriter

DISCUSSION John Kodis 2 participants 2 messages May 14, 2001 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

John Kodis

author
#1 lore raw
Quoted 5 lines · Horst von Brand

The old C compiler/old Unix linker guaranteed 6 chars in an external symbol name only, and C functions got an underscore prepended: _creat. I guess this is the reason for this wart. As to why 6 chars only, I'd guess some data structure in the linker was laid out that way. Machines had a few dozen Kbs of RAM then, space was precious.

I recall that RSX-11 and a few other series of early DEC operating systems stored linker symbols in a "RAD50" encoding scheme which allowed 6 chararacters to be crammed into a 32-bit "long word". I suspect that this is where the limitation originated.

Signature · 2 lines
John Kodis <[email protected]>
Phone: 301-286-7376
#2 lore raw

Re: Not a typewriterg

In reply to a message not in the archive
Quoted 8 lines · John Kodis
Quoted 5 lines · Horst von Brand

The old C compiler/old Unix linker guaranteed 6 chars in an external symbol name only, and C functions got an underscore prepended: _creat. I guess this is the reason for this wart. As to why 6 chars only, I'd guess some data structure in the linker was laid out that way. Machines had a few dozen Kbs of RAM then, space was precious.

Quoted 4 lines

I recall that RSX-11 and a few other series of early DEC operating systems stored linker symbols in a "RAD50" encoding scheme which allowed 6 chararacters to be crammed into a 32-bit "long word". I suspect that this is where the limitation originated.

More trivia. Rad50 actually allows 5 characters per 32-bit word. The 50 is actually 050 in octal (ie, 40 decimal), and allows you to have all 26 english letters, 10 digits, a null, and 3 characters. At this stage, I don't remember what the precise encoding is, or what the additional 3 characters were (I suspect different systems used different characters). One of the first systems I worked on professionally (Data General RDOS) used RAD50 in their object file format.

Signature · 4 lines
Michael Meissner, Red Hat, Inc.  (GCC group)
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work:	  [email protected]		phone: +1 978-486-9304
Non-work: [email protected]	fax:   +1 978-692-4482