Skip to content

Instantly share code, notes, and snippets.

@agargiulo
Created February 1, 2013 18:02
Show Gist options
  • Save agargiulo/4692950 to your computer and use it in GitHub Desktop.
Save agargiulo/4692950 to your computer and use it in GitHub Desktop.
Some interesting output from GCC and Clang with different sections of the same source file from my latest sys prog project
# From GCC 4.6.3
movl GLOBAL_TIME, %eax
addl $1, %eax
movl %eax, GLOBAL_TIME
movl GLOBAL_TIME, %eax
# From Clang 3.0-6ubuntu
movl ALARM_TIME, %eax
cmpl GLOBAL_TIME, %eax
jne .LBB0_5
.LBB0_5:
jmp .LBB0_7
.LBB0_6:
.LBB0_7:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment