Skip to content

Instantly share code, notes, and snippets.

@EricWF
Created March 30, 2015 22:40
Show Gist options
  • Select an option

  • Save EricWF/61f69411035281493bed to your computer and use it in GitHub Desktop.

Select an option

Save EricWF/61f69411035281493bed to your computer and use it in GitHub Desktop.
struct T {
int x[10];
};
int main() {
T t1;
t1.x[0] = 42;
T t2 = t1;
asm volatile("" : "+rm" (t2));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment