Un amigo me envió ese código y alega que podría dañar el procesador. ¿Es eso cierto?¿Podría este código dañar mi procesador?
void damage_processor() {
while (true) {
// Assembly code that sets the five control registers bits to ones which causes a bunch of exceptions in the system and then damages the processor
Asm(
"mov cr0, 0xffffffff \n\t"
"mov cr1, 0xffffffff \n\t"
"mov cr2, 0xffffffff \n\t"
"mov cr3, 0xffffffff \n\t"
"mov cr4, 0xffffffff \n\t"
)
}
}
¿Es eso cierto?
Intrigante. Me sorprendería si fuera posible escribir código para dañar directamente el procesador, pero ciertamente es posible crear inestabilidad del sistema desde una aplicación que conduce a una falla total del sistema en espera de un reinicio. –
No, no es cierto, pero hará que su monitor explote. – kahoon
Bueno, ¿lo intentaste? – Christoffer