[net.unix-wizards] PDP-11 C Compiler with Long Names

jdd@allegra.UUCP (10/04/83)

A friend needs a C compiler (and assembler and loader) for a PDP-11 that
accepts long names, much like the 4BSD compilers for VAXes.

If this were a cross-compiler, from VAXes to 11's, that would be even better.

If you have any information or suggestions, please send me mail.

Cheers,
John ("Not A Compiler Hacker") DeTreville
Bell Labs, Murray Hill

ron%brl-vgr@sri-unix.UUCP (10/13/83)

From:      Ron Natalie <ron@brl-vgr>

We fudged this by taking a Berkeley CPP (one that does long identifiers)
to replace the Bell CPP.  We then just put at the top of the file an
include file with the ambiguous references such as


	#define	sockaddr	skaddr
	#define	sockaddr_in	skaddrin

This is how we got the Berkeley TCP code to work on our 11's.

Allowing long symbol names involves changing not just the compiler,
but the loader, debuggers, the assembler, nm, and anyother program
that knows about the symbol table.  This also causes all previously
compiled programs to have a different symbol table than the new ones.

-Ron