This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: AIX I/O failures



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]