Uploaded October 2016 | Updated November 2026, 3 hours ago
The younger generation of programmers often has little or no exposure to assembly. The few universities that cover assembly spend little time on it, and rarely teach it enough to be able to debug problems with it, and online resources are hard to come by. This talk starts from the ground up, first demystifying the x64 assembler syntax and then presenting a series of techniques for understanding optimized programs.
Leave questions or comments below or on my Twitter: twitter.com/VinoBS or at my email: bs.vino@gmail.com
REFERENCES
===========
TIS-100
zachtronics.com/tis-100
Sum example code
gist.github.com/BSVino/06421c647d686830e5b4b2f8f217476b
Factorial example code
gist.github.com/BSVino/db0806c5bcfe74bb6d82bdcc76f664b4
Widget/Doodad example code
gist.github.com/BSVino/585d4c74eb746bdbdf9bd7c60ffffded
EntityList example code
gist.github.com/BSVino/d76542f8f63480bb924c5c59246136f5
FP exception example code
gist.github.com/BSVino/a0101a063ba5600078b34259fb501a65
Memory patching example code
gist.github.com/BSVino/fedd455e1dc885db8c62396f42be67b1
MDN SIMD article
developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SIMD
Copperman, M - Debugging Optimized Code Without Being Misled
https://people.eecs.berkeley.edu/~fateman/264/papers/copperman.pdf
Tips on Debugging Optimized Code
stlinux.com/devel/debug/jtag/debugging-optimized-code
MSDN - Register Usage
msdn.microsoft.com/en-us/library/9z1stfyw.aspx
MSDN - How To: Debugging Optimized Code
msdn.microsoft.com/en-us/library/606cbtzs.aspx
MSDN - Parameter Passing
msdn.microsoft.com/en-us/library/zthk2dkh.aspx
MSDN - Caller/Callee saved registers
msdn.microsoft.com/en-us/library/6t169e9c.aspx
MSDN - Debugging a release build
msdn.microsoft.com/en-us/library/fsk896zz.aspx
System V Application Binary Interface
people.freebsd.org/~obrien/amd64-elf-abi.pdf
Ruskin, E - Forensic Debugging: How To Autopsy, Repair, and Reanimate a Release-built Game
gdcvault.com/play/1014351/Forensic-Debugging-How-to-Autopsy
The Intel Intrinsics Guide
software.intel.com/sites/landingpage/IntrinsicsGuide
The younger generation of programmers often has little or no exposure to assembly. The few universities that cover assembly spend little time on it, and rarely teach it enough to be able to debug problems with it, and online resources are hard to come by. This talk starts from the ground up, first demystifying the x64 assembler syntax and then presenting a series of techniques for understanding optimized programs.
Leave questions or comments below or on my Twitter: twitter.com/VinoBS or at my email: bs.vino@gmail.com
REFERENCES
===========
TIS-100
zachtronics.com/tis-100
Sum example code
gist.github.com/BSVino/06421c647d686830e5b4b2f8f217476b
Factorial example code
gist.github.com/BSVino/db0806c5bcfe74bb6d82bdcc76f664b4
Widget/Doodad example code
gist.github.com/BSVino/585d4c74eb746bdbdf9bd7c60ffffded
EntityList example code
gist.github.com/BSVino/d76542f8f63480bb924c5c59246136f5
FP exception example code
gist.github.com/BSVino/a0101a063ba5600078b34259fb501a65
Memory patching example code
gist.github.com/BSVino/fedd455e1dc885db8c62396f42be67b1
MDN SIMD article
developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SIMD
Copperman, M - Debugging Optimized Code Without Being Misled
https://people.eecs.berkeley.edu/~fateman/264/papers/copperman.pdf
Tips on Debugging Optimized Code
stlinux.com/devel/debug/jtag/debugging-optimized-code
MSDN - Register Usage
msdn.microsoft.com/en-us/library/9z1stfyw.aspx
MSDN - How To: Debugging Optimized Code
msdn.microsoft.com/en-us/library/606cbtzs.aspx
MSDN - Parameter Passing
msdn.microsoft.com/en-us/library/zthk2dkh.aspx
MSDN - Caller/Callee saved registers
msdn.microsoft.com/en-us/library/6t169e9c.aspx
MSDN - Debugging a release build
msdn.microsoft.com/en-us/library/fsk896zz.aspx
System V Application Binary Interface
people.freebsd.org/~obrien/amd64-elf-abi.pdf
Ruskin, E - Forensic Debugging: How To Autopsy, Repair, and Reanimate a Release-built Game
gdcvault.com/play/1014351/Forensic-Debugging-How-to-Autopsy
The Intel Intrinsics Guide
software.intel.com/sites/landingpage/IntrinsicsGuide










