Source code of gcc implementation of printf function in assembly.

Amit Choudhary amitchoudhary0523@gmail.com
Mon May 31 09:58:43 GMT 2021


Thanks Florian. I appreciate it.

Amit

On Mon, May 31, 2021, 3:23 PM Florian Weimer <fweimer@redhat.com> wrote:

> * Amit Choudhary via Gcc-help:
>
> > I downloaded the gcc source code to find the source code of gcc
> > implementation of printf function in assembly. But I could not find it.
> > Does anyone know. Please let me know.
>
> The implementation is in the corresponding C library (such as glibc,
> musl, or newlib), not in GCC itself.  For glibc, the implementation is
> in stdio-common/vfprintf-internal.c, but it is very macro-heavy and tied
> to the obsolete libio framework.  Other implementations are perhaps more
> straightforward.
>
> Thanks,
> Florian
>
>


More information about the Gcc-help mailing list