Debugging Optimized x64 Code HD

22.10.2016
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: http://twitter.com/VinoBS or at my email: bs.vino@gmail.com REFERENCES =========== TIS-100 http://www.zachtronics.com/tis-100/ Sum example code https://gist.github.com/BSVino/06421c647d686830e5b4b2f8f217476b Factorial example code https://gist.github.com/BSVino/db0806c5bcfe74bb6d82bdcc76f664b4 Widget/Doodad example code https://gist.github.com/BSVino/585d4c74eb746bdbdf9bd7c60ffffded EntityList example code https://gist.github.com/BSVino/d76542f8f63480bb924c5c59246136f5 FP exception example code https://gist.github.com/BSVino/a0101a063ba5600078b34259fb501a65 Memory patching example code https://gist.github.com/BSVino/fedd455e1dc885db8c62396f42be67b1 MDN SIMD article https://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 http://www.stlinux.com/devel/debug/jtag/debugging-optimized-code MSDN - Register Usage https://msdn.microsoft.com/en-us/library/9z1stfyw.aspx MSDN - How To: Debugging Optimized Code https://msdn.microsoft.com/en-us/library/606cbtzs.aspx MSDN - Parameter Passing https://msdn.microsoft.com/en-us/library/zthk2dkh.aspx MSDN - Caller/Callee saved registers https://msdn.microsoft.com/en-us/library/6t169e9c.aspx MSDN - Debugging a release build https://msdn.microsoft.com/en-us/library/fsk896zz.aspx System V Application Binary Interface http://people.freebsd.org/~obrien/amd64-elf-abi.pdf Ruskin, E - Forensic Debugging: How To Autopsy, Repair, and Reanimate a Release-built Game http://www.gdcvault.com/play/1014351/Forensic-Debugging-How-to-Autopsy The Intel Intrinsics Guide https://software.intel.com/sites/landingpage/IntrinsicsGuide

Похожие видео