Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site altos86.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!gatech!seismo!lll-crg!lll-lcc!vecpyr!altos86!andy From: andy@altos86.UUCP (Andy Hatcher) Newsgroups: net.unix-wizards Subject: Re: Prepending _ in C external names necessary? Message-ID: <174@altos86.UUCP> Date: Tue, 3-Dec-85 03:00:10 EST Article-I.D.: altos86.174 Posted: Tue Dec 3 03:00:10 1985 Date-Received: Thu, 5-Dec-85 07:22:17 EST References: <200@brl-tgr.ARPA> Reply-To: andy@gateway.UUCP (Andy Hatcher) Organization: Altos Computer Systems, San Jose, CA Lines: 21 I've finally decided to put my two cents in. It is not necessary for C variables to be prepended with _, In fact, the C compiler used on our 68020 box does not prepend _, and it works fine. I am not a compiler wiz, but I do know that the assembler requires register names to be prepended with % and immediate data with &. This has caused a very few (very minor) problems, and we are pretty happy with the compiler. The compiler is a system V coff format compiler. Is this treatment of _ generic to system V? Getting one extra character of significance in identifiers was not the reason it was done, (the compiler already supports long names). Ramblingly, Andy Hatcher Altos Computer Systems