Liste des Groupes | Revenir à c arch |
Thomas Koenig wrote:Michael S <already5chosen@yahoo.com> schrieb:>
In case you missed it, the web page contains link to pdf:
https://gofetch.fail/files/gofetch.pdf
Looking the paper, it seems that a separate "load value" instruction
(where it is guaranteed that no pointer prefetching will be done)
could fix this particular issue. Compilers know what type is being
loaded from memory, and could issue the corresponding instruction.
This would not impact performance.
Only works for new versions of an architecture, and supporting
compilers, but no code change would be required. And, of course,
it would eat up opcode space.
It doesn't need to eat opcode space if you only support one data type,
64-bit ints, and one address mode, [register].
Other address modes can be calculated using LEA.
Since these are rare instructions to solve a particular problem,
they won't be used that often, so a few extra instructions shouldn't matter.
Les messages affichés proviennent d'usenet.