AIX I/O failures
Mark Mitchell
mark@codesourcery.com
Thu Jan 25 13:18:00 GMT 2001
The reference approach has a performance cost that the array-of-chars
appraoch does not.
You now penalize every reference to cout, in that the linker cannot
resolve the address statically. In other words, when you say:
cout.write (...)
the code will look like:
reg1 := address of reference to cout
reg2 := *reg1
write (reg2)
instead of:
reg1 := address of cout
write (reg1)
Right?
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
More information about the Libstdc++
mailing list