Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: How does gcc (any compiler) actually convert a function call, say atoi(), into assembly/machine code? Date: Fri, 23 Dec 2016 12:56:52 -0800 Organization: None to speak of Lines: 28 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="df4a13e992574b38b1b7cd38c2b29037"; logging-data="15409"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+uWmXPUPxIt3276nCLr7Q/" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:yI1XM+v6pi05i8Mv+3S4jfphCFI= sha1:sU/9WVIJlLl5IHMIXR9oFb3TmgQ= Xref: csiph.com comp.lang.c:100090 Richard Heathfield writes: [...] > If you want the GNU people to change their policy, I suggest you contact > them directly. This newsgroup can't change their minds for you. In the > meantime, if you ask your OS to install gcc for you, it will typically > install glibc as well, so it really isn't a problem for anyone except you. That depends on the OS. Most Linux distributions come with gcc and glibc preinstalled. As new versions become available, they can generally be updated independently. MacOS uses a different library implementation; I don't know whether you can install glibc or not. It also has transitioned from gcc to clang by default, but you can still install gcc. And both gcc and clang use the same library implementation. And Windows doesn't have a way to "ask your OS" to install gcc; you have to find a third-party installation package, which is likely to include both a compiler and a library (probably not glibc). (Yes, installing a working non-Microsoft C implementation on Windows is more difficult than it should be.) -- 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"