您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

golang能写操作系统吗

2024/4/29 13:46:00发布12次查看
golang能写操作系统吗
当然是可以的。
这个是 2018 osdi 上面的一篇 paper : the benefits and costs of writing a posix kernel in a high-level language。在这篇 paper 中,作者就对比了用 go 语言和 c 语言写操作系统内核的区别,最后的结论是:
in experiments comparing nearly identical system call, page fault, and context switch code paths written in go and c, the go version was 5% to 15% slower.
在比较用go和c编写的几乎相同的系统调用,页面错误和上下文切换代码路径的实验中,go版本的速度慢了5%至15%。
除此之外,google 开源的 gvisor, go 语言实现的用户态的 linux 内核,也可以了解一下。
相关推荐:golang教程
以上就是golang能写操作系统吗的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product