Liste des Groupes | Revenir à cl c |
Bart <bc@freeuk.com> writes:Well, does a C compiler for Linux come with its own stdio.h, or does it share /usr/include/stdio.h along with other compilers?On 24/11/2024 21:45, Keith Thompson wrote:[...]Bart <bc@freeuk.com> writes:I'm not sure what you mean by "provided by the OS". Linux-based>A more useful installation would of course need more standard headers,Sure, those are all part of a C implementation, though they're not
an assembler, linker, and whatever .a files are needed to provide the
standard library.
part of gcc.
This seems to be a thing with Linux, where a big chunk of a C
implementation is provided by the OS.
systems tend to be very modular, with almost everything provided by
some installable binary package. Some of those packages have to
be provided by default, for example any dynamic libraries relied
on by most executables. Files that are needed for development,
such as header files, compilers, and associated tools such as
assemblers and linkers, may be optional.
It relies for things like header files, linkers and libraries on an existing gcc installation.That is, standard headers, libraries, possibly even 'as' and 'ld'On my system (Ubuntu), the as and ld commands are provided by the
utilities.
binutils package ("binutils-x86-64-linux-gnu"). Some distributions
may install these by default. Others do not, but they're easy
to install.
On Windows, C compilers tend to be self-contained (exceptI don't know what you mean by "piggy-back onto gcc".
for Clang which appears to be parasitical: it used to piggy-back onto
gcc, then it switched to MSVC).
But you seem to like pointing out that gcc doesn't include header files, assemblers, linkers and libraries. And previously you claimed that:I'm not sure what the utility to compile C programs is called, if itI call it gcc.
is not 'gcc'. But this is a C group, I would expect people to know it
is a C compiler, or the front end of one.
>
However I use 'gcc' in other forums and everyone knows what I mean.
>
What do /you/ call the C compiler that is invoked by gcc?
"gcc" is the name for several things. It's the "GNU Compiler
Collection". It's the command invoked as the driver for any of
several compilers that are part of the GNU Compiler Collection.
It can refer specifically to the C compiler. It's mildly confusing
for historical reasons, but most people don't have much of a
problem with it, and don't pretend that it's more confusing than
it really is.
Les messages affichés proviennent d'usenet.