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]
Other format: [Raw text]

Re: [Patch] Remove workaround for copy_backward


This is a side comment unrelated to the patches proposed.


On Sat, Sep 27, 2003 at 07:43:35PM +0200, Gabriel Dos Reis wrote:
> Basically, what is happening is that the last argument (either a
> __true_type or a __false_type) which we know is a compile-time
> constant is "shifted" into an explicit template argument for the class
> dispatcher, so one uses less function arguments or registers. 

Or /registers/?

Is the compiler really allocating registers for arguments which it knows
are unused (because they don't have formal names)?  That would suck...
I don't know off the top of my head how to test this.


Phil

-- 
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.
    - Brian W. Kernighan


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