2 ms·
The method for printing uses an Intel UART driver to print characters. AFAIK, the standard low level UART generally only does single character transfers unless
by jeroenhd 2y ago
The method for printing uses an Intel UART driver to print characters. AFAIK, the standard low level UART generally only does single character transfers unless you write a (relatively) complex driver.
Rendering per string is better per string, but I'm not so sure how bad the difference is when it comes to UART but I doubt the system has enough throughput for the first implementation to matter.
- 90s_dev 2y agoI wonder if this is related to that bare metal bios os post from a week or so ago. I asked the author why he used tty asm calls to print instead of calling int 10 directly and he said it was more efficient, but for different reasons. https://news.ycombinator.com/item?id=43873822 https://news.ycombinator.com/item?id=43873822
- Someone 2y ago> The method for printing uses an Intel UART driver to print characters The spec (rightfully) says “(e.g. serial console)”, not “Intel UART driver”. You cannot know what bare metal you’re running on. On some hardware it could be sending data out over Bluetooth, USB or WiFi because that’s the only connection to the outside world.