This is the mail archive of the
mailing list for the glibc project.
Re: [libc-alpha] Re: [open-source] Re: Wish for 2002 ...
- From: Kaz Kylheku <kaz at ashi dot footprints dot net>
- To: Sandy Harris <sandy at storm dot ca>
- Cc: "Martin v. Loewis" <martin at v dot loewis dot de>, <aoliva at redhat dot com>, <netch at iv dot nn dot kiev dot ua>, <torvalds at transmeta dot com>, <mouring at etoh dot eviladmin dot org>, <markus at openbsd dot org>, <eggert at twinsun dot com>, <leclerc at austin dot sns dot slb dot com>, <security-audit at ferret dot lmh dot ox dot ac dot uk>, <libc-alpha at sources dot redhat dot com>, <openssh at openbsd dot org>
- Date: Sat, 12 Jan 2002 19:13:15 -0800 (PST)
- Subject: Re: [libc-alpha] Re: [open-source] Re: Wish for 2002 ...
On Sat, 12 Jan 2002, Sandy Harris wrote:
> "Martin v. Loewis" wrote:
> > Notice that -liberty offers this as concat(const char* first, ...).
> That strikes me as a function worth having, though perhaps not in standard
I'd rather have the compiler analyze *printf format strings and
generate code. There is no reason why
snprintf(d, sizeof d, "%s%s", s1, s2)
can't be compiled into calls to some compiler run-time support
function that catenates directly.
The GNU compiler can already analyze the format string for the purpose
of error checking; the next obvious step is code generation.
In priciple, a compiled sprintf can do anything which a variable-argument
concat can do, just as efficiently.