counting examples

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

first of all, thanks for the great book.

I have some doubts about some of the counting examples.  Namely, those
that implement inc_count() as a simple increment operation.  If there
is nothing to restrain the compiler/linker, they can possibly merge
several increments together, or optionally keep the counter value in a
register.

Of course, this won't happen with counttorture, because of the
barrier() in the loop.  But I wonder if that barrier() should be part
of inc_count() instead.  What do you think?

Thanks,

Imre
--
To unsubscribe from this list: send the line "unsubscribe perfbook" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux