Re: _REENT_CHECK_VERIFY calls __assert_func even if NDEBUG is defined

Keith Packard via Newlib <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
"R. Diez via Newlib" <[email protected]> writes:

> Note that sizeof( struct _reent  ) increases from 240 bytes to 1064
> bytes (tested with Newlib version 3.3.0).

If you're tight on RAM, you might look at the newlib fork, picolibc,
which uses native TLS support for reentrant data values like
_rand_next. With that approach, your thread-local storage contains only
values used by your application and malloc need never be called. In this
case, the per-thread data would be only eight bytes.

-- 
-keith
signature.asc (application/pgp-signature, 832 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEw4O3eCVWE9/bQJ2R2yIaaQAAABEFAl6op28ACgkQ2yIaaQAA
ABFAVw/+L7qGBvyT+dcP1k6uoTJQpkpCTLYYZxgBTb0Fpy7NFZwme2V4ZmM96IaZ
c6bln0nZmDLkW5+f/SDUNL02aEKMZB2PBx5PlxhTaY80RkRcWPxuvG7n3RBkKMJ/
pif335ZhG9kemcui26sHt63bIE16Le48CiYbF210CyevtzW7ZfIYhNAMKwjPoL/4
YjhouZ8pfv6HYyf2gQou7pjX2fIn8AyKrGbv8kw9EsGq0gRdO94zCBc2MWijT7qb
J+iV443c/Mz3vkOoFAlXYEGWwA8Oh3tyfP4LDP6tXPuMk6o7R/FV+ft6t8T2oWvJ
LJfOFtaxLw+WNjHpD9M99VH7W6hvkcsF38IwQJ83KoxZLC85oe2gkJyiWdFVA7tM
CO1AZWOb1phPd7HIPz0oE/S2oqzwApHBdmnifOqXrgG0zzMQ53CWCKrPd5O14Gb8
olpVQmjnAEGE0RrDUwDtnHB5PgDRJTn8Hcwk0iB4xKLqDhYn1cxjF5G7P/fWW4lX
Aow8M2vfdZmbewLQhWv6ao0uF/iCZG8VjjcBxVY7MAaQ/mgQvSZZYTfPGQrT6bLl
6Q0xe7mYoyxedfdPmY19lZYslR91/TWX+XCFfJUnBdHD+3R+ZVcKYkcPoaCl2mVN
Th47KCyhuc3z/dMEoKlG2rSnaTWfvYewzv3MF2dS6hi8JwTcF5E=
=DRzr
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.