Agner Fog's Software Optimization Resources

Agner Fog (Retired, DTU) · Engineering blog · 169 works · 2,699 pp.
Provenance & compiled volume Provenance & volume Details
Original source www.agner.org/optimize/
Corpus totals 169 works · 2,699 pages · 1,171,148 words
Compiled PDF volume asmlib instructions (323.3 KB)
Content integrity (SHA-256)

Table of Contents

50 shown · 169 total works
  1. 01 asmlib instructions 01 · 45 min · pp. 1–28
  2. 02 1 Introduction 02 · 4 min · pp. 3–4
  3. 03 2 The need for standardization 03 · 2 min · p. 5
  4. 04 3 Data representation 04 · 5 min · pp. 6–7
  5. 05 4 Data alignment 05 · 1 min · p. 8
  6. 06 5 Stack alignment 06 · 2 min · p. 9
  7. 07 6 Register usage 07 · 18 min · pp. 10–16
  8. 08 7 Function calling conventions 08 · 19 min · pp. 17–24
  9. 09 8 Name mangling 09 · 37 min · pp. 25–44
  10. 10 9 Exception handling and stack unwinding 10 · 2 min · p. 45
  11. 11 10 Initialization and termination functions 11 · 2 min · p. 46
  12. 12 13 Memory models 12 · 5 min · pp. 47–48
  13. 13 14 Relocation of executable code 13 · 5 min · pp. 49–50
  14. 14 15 Object file formats 14 · 10 min · pp. 51–54
  15. 15 16 Debug information 15 · 3 min · pp. 55–56
  16. 16 19 Available C++ Compilers 16 · 2 min · pp. 57–58
  17. 17 20 Literature 17 · 1 min · p. 59
  18. 18 21 Copyright notice 18 · 1 min · p. 60
  19. 19 Introduction 19 · 14 min · pp. 5–10
  20. 20 Basic architecture 20 · 14 min · pp. 11–16
  21. 21 Instruction formats 21 · 35 min · pp. 17–33
  22. 22 Instruction lists 22 · 29 min · pp. 34–49
  23. 23 Description of instructions 23 · 82 min · pp. 50–104
  24. 24 Numerical errors and exceptions 24 · 11 min · pp. 105–109
  25. 25 Other implementation details 25 · 12 min · pp. 110–115
  26. 26 Programmable application-specific instructions 26 · 1 min · p. 116
  27. 27 Microarchitecture and pipeline design 27 · 15 min · pp. 117–122
  28. 28 Memory model 28 · 14 min · pp. 123–128
  29. 29 System programming 29 · 11 min · pp. 129–133
  30. 30 Standardization of ABI and software ecosystem 30 · 27 min · pp. 134–143
  31. 31 Support for multiple instruction sets 31 · 4 min · pp. 144–147
  32. 32 Binary tools 32 · 13 min · pp. 148–155
  33. 33 Programming manual 33 · 50 min · pp. 156–187
  34. 34 Test suite 34 · 1 min · p. 188
  35. 35 Softcore 35 · 1 min · p. 189
  36. 36 Conclusion 36 · 6 min · pp. 190–192
  37. 37 Version history 37 · 6 min · pp. 193–197
  38. 38 Copyright notice 38 · 1 min · p. 198
  39. 39 Introduction 39 · 2 min · p. 1
  40. 40 Definition of terms 40 · 8 min · pp. 2–4
  41. 41 Instruction sets 41 · 6 min · pp. 5–7
  42. 42 Microprocessors tested 42 · 2 min · p. 8
  43. 43 AMD K7 43 · 12 min · pp. 9–16
  44. 44 K8 44 · 15 min · pp. 17–25
  45. 45 K10 45 · 15 min · pp. 26–35
  46. 46 Bulldozer 46 · 21 min · pp. 36–47
  47. 47 Piledriver 47 · 23 min · pp. 48–60
  48. 48 Steamroller 48 · 22 min · pp. 61–73
  49. 49 Excavator 49 · 23 min · pp. 74–86
  50. 50 Zen1 50 · 23 min · pp. 87–100