Weird gcc behavior
#7
I think I've read somewhere that the compiler can decide to have bool whatever size it wants, it's not specified in the standard. And if it indeed used ints, memset won't work.
Optimalizator should be smart enough, anyway, to transform the for loop into something more efficient - usually a memset or equivalent.
Reply
Thanks given by:


Messages In This Thread
Weird gcc behavior - by xoft - 11-18-2012, 11:35 PM
RE: Weird gcc behavior - by ThuGie - 11-19-2012, 01:15 AM
RE: Weird gcc behavior - by FakeTruth - 11-19-2012, 03:10 AM
RE: Weird gcc behavior - by xoft - 11-19-2012, 03:50 AM
RE: Weird gcc behavior - by xoft - 11-19-2012, 07:43 AM
RE: Weird gcc behavior - by FakeTruth - 11-19-2012, 07:57 AM
RE: Weird gcc behavior - by xoft - 11-19-2012, 04:19 PM
RE: Weird gcc behavior - by FakeTruth - 11-19-2012, 05:56 PM



Users browsing this thread: 1 Guest(s)