public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* libc: arm: setjmp jmp_buf exagerated size
@ 2023-02-14 22:47 Bernhard Krug
  2023-02-15 11:09 ` [PATCH] " Bernhard Krug
  0 siblings, 1 reply; 8+ messages in thread
From: Bernhard Krug @ 2023-02-14 22:47 UTC (permalink / raw)
  To: newlib

Hello, 

using setjmp to implement eight coroutines on an ARM Cortex-M0+ the allocated size of .data escalates, in my example, from 476 bytes to 1444 bytes!

I think "libc: arm: fix setjmp abi non-conformance" shouldn't use jmp_buf made of 20 long long ints on a 32bit arm without fpu :D

Can the #ifndef device detection/decision tree from the setjmp asm/source file be also used in the headers to set reasonable sizes?

For my machine and use-case gcc emits asm copying ten registers (as expected) which would be rightly sized.

Thanks for your work and consideration :)

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

end of thread, other threads:[~2023-02-15 17:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-14 22:47 libc: arm: setjmp jmp_buf exagerated size Bernhard Krug
2023-02-15 11:09 ` [PATCH] " Bernhard Krug
2023-02-15 15:56   ` Bernhard Krug
2023-02-15 16:05   ` Bernhard Krug
2023-02-15 16:12   ` Richard Earnshaw
2023-02-15 16:40     ` Bernhard Krug
2023-02-15 17:01       ` Richard Earnshaw
2023-02-15 17:14         ` Bernhard Krug

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).