Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Development Best Practices and C "nomenclature" Date: Tue, 17 Nov 2015 08:54:41 -0800 Organization: None to speak of Lines: 20 Message-ID: References: <5sai4b15uitn38qkrbi06moqfiev00n0td@4ax.com> <17264e2f-0e67-412e-800d-d23c4e300d42@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="945944de09706c9b4e29b53c9d2efdc2"; logging-data="16373"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19P80IOXfaxR+0bKjY8nryN" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:IpF7sYLbElQkNmBZCyo7HpAfA+c= sha1:yEvXCHLBHetsPvpmS7Oe3IwDiaM= Xref: csiph.com comp.lang.c:76250 David Brown writes: [...] > Names are not used in the generated object code (unless you use > "__func__" in gcc or some other way of adding function names to the > code). Names will be included in linkable object files for linkage, > debugging information, etc., but they are not used in the final linked > machine code that is run. It depends. Symbols that are visible to the linker may be included in the executable file. On Unix-like systems, run "nm" to see what symbols are included. These symbols may be stripped out, or not included in the first place, depending on how you invoke the linker. But (as I understand it) they're not generally loaded into memory when you run the program. (Things may or may not be similar on non-Unix-like systems.) -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"