On Mon, Aug 1, 2011 at 2:11 AM, Programmingkid programmingkidx@gmail.com wrote:
Is there a way to make OpenBIOS not use so much CPU time when running in QEMU? My laptop becomes very hot when I do anything in OpenBIOS.
I've noticed that too. The input device (keyboard/serial) is scanned in a tight busy loop. With some effort, this could be changed to interrupt driven.
I was thinking the exact same thing.
But the same thing happens also when lots of Forth is executed, maybe the Forth interpreter and QEMU code fits in the CPU cache nicely and this then maximizes CPU throughput and power consumption.
Maybe we should give the user the option to reduce cpu usage. A compile-time or runtime option might do. My idea is set the interrupt controller to run code that makes the currently running code sleep for 10 milliseconds. That would take care of both problems. We would finally have computers that don't feel like space heaters after doing some Forth programming on them.