Skip to content

Instantly share code, notes, and snippets.

@theonewolf
Created April 25, 2011 22:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theonewolf/941423 to your computer and use it in GitHub Desktop.
Save theonewolf/941423 to your computer and use it in GitHub Desktop.
assembler
200:test_hash_best.cpp **** result = hashtable.insert(std::make_pair(next_key, 1));
1026 .loc 3 200 0
1027 0596 8D45AC leal -84(%ebp), %eax
1028 0599 C7442408 movl $1, 8(%esp)
1028 01000000
1029 05a1 8B55D0 movl -48(%ebp), %edx
1030 05a4 89542404 movl %edx, 4(%esp)
1031 05a8 890424 movl %eax, (%esp)
1032 05ab E8FCFFFF call _ZSt9make_pairIPciESt4pairIT_T0_ES2_S3_
205:test_hash_malloc.cpp **** result = hashtable.insert(std::make_pair(arr[i], 1));
1030 .loc 3 205 0
1031 0597 8B45C4 movl -60(%ebp), %eax
1032 059a C1E002 sall $2, %eax
1033 059d 0345D0 addl -48(%ebp), %eax
1034 05a0 8B10 movl (%eax), %edx
1035 05a2 8D45A4 leal -92(%ebp), %eax
1036 05a5 C7442408 movl $1, 8(%esp)
1036 01000000
1037 05ad 89542404 movl %edx, 4(%esp)
1038 05b1 890424 movl %eax, (%esp)
1039 05b4 E8FCFFFF call _ZSt9make_pairIPciESt4pairIT_T0_ES2_S3_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment