🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #50557

underscores on symbols

#50557
From: meissner
Date: Tue, 14 Sep 1993 02:35
24 lines
1742 bytes
| This may be a FAQ but I can't find the FAQ...
| 
| The gcc I am using is not putting underscores before the symbol
| names in .o files, is this the default action? There is an
| option for _assembler_ output, -mno_underscores, but it says
| the default _is_ underscores (sorry about the underscores).
| can anyone tell me whats going on?
| 
| Is it a standard in all C compilers to have underscores?

It is up to each implementation to decide whether to put underscores
in or not.  Gcc generally follows the convention of the host libraries
so that you can link against them.  If a particular implementation
uses the wrong underscore convention, please bug report it so it can
be fixed.  It often times depends on whether the assembler has
register names starting with '$', '%' or some such.  Check out the
assembler format subsection in the target macros section of the
manual.

--
Michael Meissner	email: meissner@osf.org		phone: 617-621-8861
Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142

Old hackers never die, their bugs just increase.
Technical Details
Message-ID: <9309131451.AA04312@pasta.osf.org>
Path: arc1-ca.pugleaf.net!gmd.de!rrz.uni-koeln.de!unidui!math.fu-berlin.de!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!osf.ORG!meissner
References: meissner@osf.ORG

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,e192f6a616e966d0
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-09-13 20:20:35 PST
Path: arc1-ca.pugleaf.net!gmd.de!rrz.uni-koeln.de!unidui!math.fu-berlin.de!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!osf.ORG!meissner
From: meissner@osf.ORG
Newsgroups: gnu.gcc.help
Subject: underscores on symbols
Date: 13 Sep 1993 22:35:59 -0400
Organization: GNUs Not Usenet
Lines: 24
Sender: daemon@cis.ohio-state.edu
Distribution: gnu
Message-ID: <9309131451.AA04312@pasta.osf.org>
References: meissner@osf.ORG