On Sat, 15 Jun 2002, Terry Lambert wrote: > Bruce Evans wrote: > printf( <const string>); -> pusts( <const string>); > > > > That is an incredibly *fugly* "optimization". It assumes that I > > > use libc, unless I have "-ffreestanding", and it assumes my > > > implementation of printf vs. puts. > > > > This is a routine optimization. It assumes that you use a C compiler > > (printf and even libc might not exist, since they might be builtins). > > A non-routine optimization might involve building hardware to run the > > application and emitting the 1 bit instruction to turn the hardware on. > > It's routine to assume that I'm going to use libc?!?
No. It is routine to assume that users use a library that meets the compiler's requirements (the compiler gets to decide, not the users; it is only constrained by the relevant standards and historical (mal)practice). Bruce To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message