编程与软件工程agner.org编辑精选
面向汇编程序员和编译器开发者的优化指南(2018)
An optimization guide for assembly programmers and compiler makers (2018) [pdf]
2017 — 2020,它一次次回到首页
黑点是上首页(≥ 50 分)的那次投稿,空心点是没冲上去的投稿,点越大分数越高。
导读
这是 Agner Fog 的微架构优化指南 PDF,面向汇编程序员和编译器开发者,系统梳理 CPU 微架构以及指令延迟、吞吐等优化细节。它属于作者优化文档系列之一,同站还有若干相关 PDF。
为什么经久不衰:它把“哪些指令贵、为什么贵”落实到具体微架构与可查数据,而不是凭感觉推测,并且长期更新,因此多年后仍是性能优化的重要参考。
HN 评论精选
提醒读者 optimize 目录下还有四份相关优化文档。
包含这个 PDF 链接的页面 https://www.agner.org/optimize/ 还链接了另外四份讨论其他优化主题的 PDF。
inetsee查看英文原文
The page containing the link to this pdf "https://www.agner.org/optimize/" has links to four other pdfs describing other topics on optimization.
推荐浏览作者站点上的数字电子学和 ForwardCom 等其他资料,但部分链接已失效。
我很喜欢这个网站,简单又老派。可以在站内逛逛 Agner 的其他工作,比如关于数字电子学基础的长文,以及一个提议的架构标准 ForwardCom。网站上有些链接已经过时或失效,但大体能看出该找什么。
rolph查看英文原文
I like this site very much, its simple and old school. Take a tour around the site for some other aspects of agners work, there is a good treatise regarding the fundamentals of digital electronics, as well as a proposed archetecture standard [ForwardCom]. some [as in a couple] of the links on agners site are stale or dead but do give you the general idea what to look for. https://www.agner.org/digital/digital_electronics_agner_fog.pdf [PDF] and: https://forwardcom.info/
补充 uops.info 及其论文作为更形式化的延迟数据来源。
还有 uops.info,它对延迟做了另一种更形式化的刻画:https://arxiv.org/abs/1810.04610
CalChris查看英文原文
There is also uops.info which has a different, more formal characterization of latency: https://arxiv.org/abs/1810.04610
强调应查文档数据,而不是凭直觉猜测指令开销。
我很喜欢这份文档,也常常惊讶:这里的评论者和其他地方的人经常推测哪些指令“可能很贵”,却不愿费心去查。
glangdale查看英文原文
I am very fond of this document, and am constantly amazed at how the commentariat, here and elsewhere, frequently like to theorize about what instructions "might be expensive" without bothering to look them up.
历次讨论
同类还值得读
开源应用架构
The Architecture of Open Source Applications
《开源软件架构》(AOSA)是一本在线免费书,邀请知名开源项目的作者亲自剖析其内部设计,涵盖 SQLAlchemy、LLVM、Audacity、Apache、Bash 等系统。
编程与软件工程上首页 9 次 · 2011–2024aosabook.org编辑精选编程语言简史:简短、不完整且多半错误
A Brief, Incomplete, and Mostly Wrong History of Programming Languages
一篇以戏谑、故意不准确的方式回顾编程语言史的博客文章,用夸张轶事和讽刺定义串起 Lisp、C、C++、Java、JavaScript、PHP 等语言。
编程与软件工程上首页 8 次 · 2009–2021james-iry.blogspot.comSQLite 是如何测试的
How SQLite is tested
SQLite 官方文档页,系统介绍 SQLite 的测试体系:多种测试方法(TCL 测试、模糊测试、回归测试、静态分析等)和海量测试用例,展示了这个小型开源项目如何靠极致测试获得…
编程与软件工程上首页 8 次 · 2009–2025sqlite.org编辑精选高级编程语言(2009)
Advanced programming languages (2009)
Matt Might 的经典文章,按用途推荐“高级编程语言”:如果追求就业就选主流语言,如果追求表达力、学术研究或创业,则推荐 Haskell、OCaml、Scala 等函数式语…
编程与软件工程上首页 8 次 · 2009–2022matt.might.net我的 Forth 与栈机器经历
Yosefk - My history with Forth & stack machines
作者以亲身经历回顾了使用 Forth 语言和栈式机器的历程:既赞叹其简洁优雅、代码量小、可自举的优点,也坦率指出栈操作在实际编程中的痛苦,以及 Forth 社区文化中的问题。
编程与软件工程上首页 8 次 · 2010–2024yosefk.com编辑精选