DEV Community

If you could add one new instruction to mainstream hardware what would it be?

Molossus Spondee on June 12, 2020

Similar to Agner Fog's idea of a new instruction set architecture but much less limited in scope https://www.agner.org/optimize/blog/read.php?i=421...
Collapse
 
mspondee profile image
Molossus Spondee

Myself I would add an instruction to better support write barriers that does a mov but also dirties a per page bit at the same time. The bit would have to be in memory somewhere so other instructions could have a normal dirty write as well.