mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Simon <simonhf@gmail.com>
To: musl@lists.openwall.com
Subject: [musl] Why does musl printf() use so much more stack than other implementations when printf()ing floating point numbers?
Date: Mon, 3 Feb 2020 13:14:21 -0800	[thread overview]
Message-ID: <CABkUXbee4S_SfUFScAs7xau6Q43U8Upr_L9wM9=p74fkX+32pg@mail.gmail.com> (raw)
In-Reply-To: <CABkUXbdOP8d=BzFTpYetmEEKyEwWqwaW7NmmB9vdJacu-wXABQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 318 bytes --]

I recently noticed that musl printf() implementation uses surprisingly more
stack space than other implementations, but only if printing floating point
numbers, and made some notes here [1]. Any ideas why this happens, and any
chance of fixing it?

[1] https://gist.github.com/simonhf/2a7b7eb98d2a10c549e8cc858bbefd53

[-- Attachment #2: Type: text/html, Size: 641 bytes --]

  parent reply	other threads:[~2020-02-03 21:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-27  0:33 [musl] Bug report: Reproduction of seg fault caused by musl thread creation race condition Simon
2020-01-27  5:28 ` Markus Wichmann
2020-01-27 17:51 ` Rich Felker
2020-01-27 19:59   ` Simon
2020-01-27 20:37     ` Szabolcs Nagy
2020-01-27 20:46       ` Rich Felker
2020-02-03 21:14 ` Simon [this message]
2020-02-03 21:57   ` [musl] Why does musl printf() use so much more stack than other implementations when printf()ing floating point numbers? Rich Felker
2020-02-03 23:05     ` Szabolcs Nagy
2020-02-03 23:52       ` Szabolcs Nagy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CABkUXbee4S_SfUFScAs7xau6Q43U8Upr_L9wM9=p74fkX+32pg@mail.gmail.com' \
    --to=simonhf@gmail.com \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).