Skip to content

Instantly share code, notes, and snippets.

@paroj
Last active Mar 7, 2017
Embed
What would you like to do?
clobber: force code generation for benchmarking
// gcc -O3 -S -masm=intel -fverbose-asm test.c
// (code : out : in : clobber)
asm volatile ("" :: "g"(&a) : "memory");
// see also: https://www.youtube.com/watch?v=nXaxk27zwlk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment