This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

Re: cpplib: expression parser patch 2


Gerald Pfeifer wrote:- > I think the better approach would be to fix GCC instead of playing > coding tricks. True, but I think here we know more than the compiler can - we know that each argument is not an int but a boolean. I suspect if we knew only what the compiler can assume then it is probably optimal. > Indeed, is the code there really that performance-/size-critical to > warrant that level of analysis/hackery? (Compared to the O(n^2) stuff > Mark Mitchell has been attacking recently, for example?) To me, there's little difference between | and || in clarity, but every reduction in code size and increase in code speed helps. Neil.
Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]