Wish: Variable Not Used Warning

Markus Koskimies markus at reaaliaika.net
Thu Jul 10 21:29:37 PDT 2008


On Fri, 11 Jul 2008 04:17:13 +0000, Markus Koskimies wrote:

> I'll read that later.

I read it. It's all about the well-known barrier between porcessors, 
memories (RAM) and disks, and the necessarity of

(1) having mulit-level caches

(2) strive to the locality of execution

Nothing to do with D compiler, extra unused vars and performance. If you 
really like to do cache optimization for modern PC, and not to trust to 
compiler & runtime environment, you would need

(1) determine the cache hierarchy, sizes and the number of ways it has 
(as well as indexing)

(2) write your code in assembler, and locate it at runtime so that it 
fills the cache lines optimally

Certainly nothing to do with HLLs like D. Absolutely nothing.



More information about the Digitalmars-d mailing list