Skip to content

Instantly share code, notes, and snippets.

@sunnyone
Created October 31, 2011 16:03
Show Gist options
  • Save sunnyone/1327835 to your computer and use it in GitHub Desktop.
Save sunnyone/1327835 to your computer and use it in GitHub Desktop.
irc_message.c strlen sample assembled by gcc(x86)
.L95:
.loc 1 420 0
movl 36(%ebp), %eax
movl (%eax,%esi), %esi
cmpb $0, (%esi)
je .L99
.loc 1 420 0 is_stmt 0 discriminator 1
movl $32, 4(%esp)
movl %esi, (%esp)
call strchr
testl %eax, %eax
je .L107
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment