Skip to content
Stochastic Optimization for x86 Binaries episode artwork

Oct 16, 2026 1 hr 10 min

Stochastic Optimization for x86 Binaries

from Google TechTalks Hosted by Google TechTalks

Google Tech TalksJanuary 12, 2015(more info below)ABSTRACTThe optimization of short sequences of loop-free fixed-point x86_64 code sequences is an important problem in high-performance computing. Unfortunately, the competing constraints of transformation correctness and performance improvement often force even special purpose compilers to produce sub-optimal code. We show that by encoding these constraints as terms in a cost function, and using a Markov Chain Monte Carlo sampler to rapidly explore the space of all possible programs, we are able to generate aggressively optimized versions of a given target program. Beginning from binaries compiled by gcc -O0, we are able to produce provably correct code sequences that either match or outperform the code produced by gcc -O3, and in some cases expert hand-written assembly.Uploaded 13-01-15Because most high-performance applications contain floating-point computations, we extend our technique to this domain and show a novel approach to trading full floating-point precision for further increases in performance. We demonstrate the ability to generate reduced precision implementations of Intel's handwritten C numerics library that are up to six times faster than the original code, and achieve end-to-end speedups of over 30% on a direct numeric simulation and a ray tracer. Because optimizations that contain floating-point computations are not amenable to formal verification using the state of the art, we present a technique for characterizing maximum error and providing strong evidence for correctness.Publication list: http://cs.stanford.edu/people/eschkufz/Github: https://github.com/eschkufz/stoke-releaseAbout the speakerEric Schkufza is a postdoctoral scholar at Stanford University working with professor Alex Aiken. He graduated from Stanford University with a PhD in computer science in June 2014. He is interested in applying stochastic search techniques to the design of optimizing compilers.

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

Stochastic Optimization for x86 Binaries

0:00 1:10:39

No transcript yet.

Requests help us decide what to transcribe next.

Frequently asked questions

How long is this episode of Google TechTalks?

This episode is 1 hour and 10 minutes long.

When was this Google TechTalks episode published?

This episode was published on October 16, 2026.

Can I download this Google TechTalks episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.