我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

我如何看待编译器进行的优化

Is there a built in way to look at the optimizations the go compiler has made or the code generated by the go compiler, for example how do I know if a function was made inline?

To see the generated code:

go tool objdump myprogram.exe

go tool objdump -s "\.String" myprogram.exe

The latter command only disassembles all String functions.

近期文章

  • Web应用中的Go身份验证逻辑模式
  • Golang-将uint转换为os.FileMode
  • Golang:去goroutine还是不去goroutine?
  • Go lang从字符串中获取匹配的子字符串
  • 如何在golang中的哈希算法之间动态切换?
  • 如何获得带有媒体子类型的http响应的MIME类型?
  • 使用反射从地图填充结构
  • 如何在不发送/接收数据的情况下检查Conn是否处于活动状态?
  • 如何查看/隐藏IMAP消息的状态
  • 在Go中验证有效负载签名
  • 被取消引用的指针的类型断言是否是在go中写入的内存?
  • 合并两个软件包或尝试解决Go lang中的循环依赖
  • 获取子域
  • 如何使用Go从Google App Engine中的模型中删除字段?
  • 在golang HTTP FileServer的Content-Type标头上设置'charset'属性
  • Golang https服务器以字节数组形式传递certFile和kyeFile
  • Go-合并2个函数,唯一的区别是参数类型
  • 修改接口数组{} golang
  • 捕获执行过程的终止代码?
  • App Engine在Go中读取本地文件

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华