I wrote this dumb delay function in kernel.c just to test that terminal scrolling was working properly after calling numerous terminal_writestring() functions with new lines:
Code: Select all
void delay(size_t n) {
for (volatile size_t i = 0; i < n; i++) {
for (volatile size_t j = 0; j < 5000000; j++)
;
}
}
I think I will stick with ATT syntax and just try to get used to it, but does anyone know why Intel syntax with GAS slows everything down by an order of magnitude?