Last active
March 7, 2017 13:01
-
-
Save paroj/4fadff1d4036a1e50a57997a1e99994d to your computer and use it in GitHub Desktop.
clobber: force code generation for benchmarking
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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