"John Thingstad" <jp*****@online.nokirjutas:
I don't understand the efficiency model for modern processors.
(The last processor I programmed in assembly was a 386)
That is parallel processors, pipelining, processor cashes etc..
Could you recommend a book on this?
If you want to program in assembler, this is probably not the right forum
to ask.
But anyway, the efficiency model for modern processors is basically quite
simple:
- Divide your workload to the number of threads equal to the number of
cores in the system (plus-minus a few, depending on the task nature).
- Get the different threads to disturb each other as little as possible.
(the caches fall under the second point).
Not really hoping this helps ;-)
Paavo