DEV Community

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

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.