Re:Proposal: Add bare metal support to Go
by lcarsip on Thursday May 08, 2025 @05:50AM
(#43924657)
printk is the low level primitive for stdout printing and it's done this way as low level drivers generally only accept single characters.
There are upper level functions which simply takes a []byte and make fmt.Printf() work seamlessly and effectively when not printing on an UART that only takes a single character as output.
There are upper level functions which simply takes a []byte and make fmt.Printf() work seamlessly and effectively when not printing on an UART that only takes a single character as output.
In TamaGo stdout is primarily used for debugging.