Creating basic “Hello World” binaries for *MSDOS* using Go is indeed 
possible but comes with limitations, especially since the mainstream Go 
compiler (gc) targets modern OSes and 64-bit architectures, making features 
like goroutines impractical. Using *gccgo* with the right cross-compilation 
flags increases your chances of generating small, executable binaries 
suitable for *FreeDOS* or other MSDOS environments. Think of it like 
ordering a *KFC special <https://kfcmeenu.co.za/>*: just as KFC customizes 
a special meal with select ingredients for a unique taste, you can tailor 
Go’s compilation options and libraries to produce a minimal, functional 
MSDOS binary, focusing only on the essentials needed to run, without the 
overhead of modern OS features.

On Tuesday, 12 April 2016 at 13:47:50 UTC+5 Aram Hăvărneanu wrote:

> Porting Go to DOS wouldn't be any more difficult than porting it to
> bare metal, which is not very difficult. In the early days Go used to
> ship with a bare metal (GOOS=tiny) toy port.
>
> -- 
> Aram Hăvărneanu
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/golang-nuts/abe8648b-5f36-40a7-9579-0b4b8684ab1en%40googlegroups.com.

Reply via email to