~/talk

Dropping Down Go Functions in Assembly

Talkat Golang UK 2016 · on Thursday, 2016-08-18· [embedded-and-hardware, software-architecture]
links:none on file
slides:none on file

Shows how to write Go functions in the plan9-derived assembler, with concrete examples of syntax, calling convention, stack-frame size and argument-size declarations, and pseudo-registers SP FP and SB. Demonstrates that assembly accelerates crypto and math routines, explains destination-on-the-right operand order, how to use NoSplit/NoEscape flags to avoid stack growth and heap escapes, and documents raw bytes for missing opcodes. Describes porting work that adds the s390x target in Go 1.7 and a GitHub layout for testing and portability.

AI-written summary · about

  1. 0:00Intro
  2. 2:17What is the Go toolchain's assembly language?
  3. 4:49What is assembly used for in Go's standard library
  4. 7:08Terminology
  5. 10:46Move instructions
  6. 14:19Branches
  7. 15:12Missing instructions
  8. 16:14Function declaration
  9. 18:37Pseudo-registers
  10. 19:45Calling convention
  11. 22:47Local variables
  12. 23:54Stack growth
  13. 25:22Flags
  14. 26:02Escape analysis
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.