public inbox for libc-help@sourceware.org
 help / color / mirror / Atom feed
* Question about the highly optimized aspects of libc implementation
@ 2017-11-30  6:48 Will Hawkins
  2017-11-30  6:54 ` Siddhesh Poyarekar
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Will Hawkins @ 2017-11-30  6:48 UTC (permalink / raw)
  To: libc-help

Hello everyone!

Please let me apologize at the start if this is the wrong venue to ask
this question.

I've been digging through the glibc implementation and looking for
examples of where compiler directives or hand-written assembly have
been used to improve performance at the "expense" of standards or
conventions.

I know that question seems incredibly vague but I'm struggling to put
it into better terms. I am not necessarily looking for places where
certain functions have been highly optimized (ie, the *cpy functions
for x86) -- I can find those relatively easily in the sysdeps.

Maybe an example will help?

Are there cases where function _a_ calls function _b_ without adhering
to the normal calling convention or the platform ABI because the
implementer knows that only function _a_ will call function _b_ and
knows which registers are dead/preserved/etc?

If any such code fragments exist that you think I would find
interesting, I'd love to get some pointers. Don't worry about
explaining what is going on -- I know everyone is incredibly busy! I
can dig into the code myself. I'm just hoping for the community's
expertise on finding /where/ to look!

Again, I know that everyone is incredibly busy and I hope that this
question did not waste anyone's valuable time.

Thanks in advance for any information that you can provide!

Will Hawkins

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-12-04 12:15 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-30  6:48 Question about the highly optimized aspects of libc implementation Will Hawkins
2017-11-30  6:54 ` Siddhesh Poyarekar
2017-11-30  8:22   ` Florian Weimer
2017-11-30  6:56 ` Carlos O'Donell
2017-11-30  7:00   ` Will Hawkins
2017-11-30  8:36 ` Florian Weimer
2017-12-04  1:15   ` Will Hawkins
2017-12-04  8:12     ` Siddhesh Poyarekar
2017-12-04 12:15     ` Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).