From 9f9705eb26c0fde296b496c25a2db4a2b7dd6031 Mon Sep 17 00:00:00 2001 From: Johannes Theiner Date: Tue, 13 Mar 2018 22:23:02 +0100 Subject: [PATCH] MP_01 objdump fix --- 01_ENV/a.out | Bin 6160 -> 6160 bytes 01_ENV/main.c | 2 ++ 01_ENV/main.o | Bin 2624 -> 2632 bytes 01_ENV/objdump-S_d.out.txt | 65 ++++++++++++++++++------------------- 4 files changed, 34 insertions(+), 33 deletions(-) diff --git a/01_ENV/a.out b/01_ENV/a.out index 38aebde282612f49ef281a85829b52f503f9d2e4..9793008e7231c8c7268743ba6d20dd7fa8d1db6c 100755 GIT binary patch delta 185 zcmbPWFu`EMb~eU@$vfDr6feB6`1k+6$No4@2L=%6Jhp-1h3en`|MxS2c&=wA3$tr5 zo|tUI?!|ayayxq<090n@rwo$bZNMPtLebec>=7k{89i6Ukx?SIRG#^QbJ)$}FB4DjMUc5t7umz~# z6i`98jjDw}0z-G{n@-maFC>5t=yZM4?fS-}`A9(Q;WRyd`4*5{7}6$ep1@JT#CT;h ICpSAU074{BumAu6 diff --git a/01_ENV/main.c b/01_ENV/main.c index a4f1137..7a7bd49 100644 --- a/01_ENV/main.c +++ b/01_ENV/main.c @@ -42,6 +42,8 @@ int main(int argc, char **argv) { } printf("Nullstellen: %d\n", zeroes); + int test = 5; + recurse1(20); printf("\n"); recurse2(20); diff --git a/01_ENV/main.o b/01_ENV/main.o index 808ad11925fce76ded2c17d1dc056a0bf7f7c190..7d29e1610adf92bc57f11c34f04c45fb91b4d5b2 100644 GIT binary patch delta 327 zcmX>gazbQ+24lxWO*_Vfi5XTC4@q+DXJTMr=yW|Z@vsKtiHUE#7>`UgXAERKFu9X4 zp#He)6;`nHo)#A4!Nk%y3N}Xl`mwPQH#pd45q&iXvBfPJU8ij;(5n!sGy^2aLBT8!{hf zyuJA+vp5sulF5Q>;*6^%7Xry0lQ*)8OCDtena;of@&*?W|M?FAr@?A&g48fR*u0R< zoRRUvhazJE)24llSO*_Vbi5XTxS6(mxfyaIj2?CwRCQebGcw2z+%)~cdj3*|WGX^pq zncT@35Z&o|09~!?o(&9OvHc<-t*$#T6l{Si=(bS>nciLcrqgx93yFXK|985+>2`hN z(R?Hz_V8pIraz2VCR;KeXS}kRkwu(IaxNoCIRgU|5OV_YpZ^fBc(NgzIOE32j6ibV z Y{p3U-`C;-xAh~1mLm=reS&>T}080d1w*UYD diff --git a/01_ENV/objdump-S_d.out.txt b/01_ENV/objdump-S_d.out.txt index 5a2a8db..405449d 100644 --- a/01_ENV/objdump-S_d.out.txt +++ b/01_ENV/objdump-S_d.out.txt @@ -216,7 +216,7 @@ Disassembly of section .text: 4006af: 90 nop 4006b0: 55 push %rbp 4006b1: 48 89 e5 mov %rsp,%rbp - 4006b4: 48 83 ec 50 sub $0x50,%rsp + 4006b4: 48 83 ec 60 sub $0x60,%rsp 4006b8: 48 b8 3c 09 40 00 00 movabs $0x40093c,%rax 4006bf: 00 00 00 4006c2: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%rbp) @@ -229,7 +229,7 @@ Disassembly of section .text: 4006e4: b0 00 mov $0x0,%al 4006e6: e8 45 fd ff ff callq 400430 4006eb: bf 02 00 00 00 mov $0x2,%edi - 4006f0: 89 45 d4 mov %eax,-0x2c(%rbp) + 4006f0: 89 45 d0 mov %eax,-0x30(%rbp) 4006f3: e8 38 fe ff ff callq 400530 4006f8: 48 bf 5e 09 40 00 00 movabs $0x40095e,%rdi 4006ff: 00 00 00 @@ -237,7 +237,7 @@ Disassembly of section .text: 400704: b0 00 mov $0x0,%al 400706: e8 25 fd ff ff callq 400430 40070b: bf 02 00 00 00 mov $0x2,%edi - 400710: 89 45 d0 mov %eax,-0x30(%rbp) + 400710: 89 45 cc mov %eax,-0x34(%rbp) 400713: e8 48 fe ff ff callq 400560 400718: 48 bf 6e 09 40 00 00 movabs $0x40096e,%rdi 40071f: 00 00 00 @@ -246,7 +246,7 @@ Disassembly of section .text: 400726: e8 05 fd ff ff callq 400430 40072b: c7 45 e8 00 00 00 00 movl $0x0,-0x18(%rbp) 400732: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%rbp) - 400739: 89 45 cc mov %eax,-0x34(%rbp) + 400739: 89 45 c8 mov %eax,-0x38(%rbp) 40073c: 83 7d e4 05 cmpl $0x5,-0x1c(%rbp) 400740: 0f 8f 1c 00 00 00 jg 400762 400746: 8b 7d e4 mov -0x1c(%rbp),%edi @@ -264,7 +264,7 @@ Disassembly of section .text: 400771: e8 ba fc ff ff callq 400430 400776: c7 45 e8 00 00 00 00 movl $0x0,-0x18(%rbp) 40077d: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%rbp) - 400784: 89 45 c8 mov %eax,-0x38(%rbp) + 400784: 89 45 c4 mov %eax,-0x3c(%rbp) 400787: 83 7d e0 05 cmpl $0x5,-0x20(%rbp) 40078b: 0f 8f 1c 00 00 00 jg 4007ad 400791: 8b 7d e0 mov -0x20(%rbp),%edi @@ -283,7 +283,7 @@ Disassembly of section .text: 4007c1: c7 45 e8 00 00 00 00 movl $0x0,-0x18(%rbp) 4007c8: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%rbp) 4007cf: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%rbp) - 4007d6: 89 45 c4 mov %eax,-0x3c(%rbp) + 4007d6: 89 45 c0 mov %eax,-0x40(%rbp) 4007d9: 83 7d d8 14 cmpl $0x14,-0x28(%rbp) 4007dd: 0f 8f 2d 00 00 00 jg 400810 4007e3: 8b 7d d8 mov -0x28(%rbp),%edi @@ -304,33 +304,32 @@ Disassembly of section .text: 40081d: b0 00 mov $0x0,%al 40081f: e8 0c fc ff ff callq 400430 400824: bf 14 00 00 00 mov $0x14,%edi - 400829: 89 45 c0 mov %eax,-0x40(%rbp) - 40082c: e8 bf fd ff ff callq 4005f0 - 400831: 48 bf 6c 09 40 00 00 movabs $0x40096c,%rdi - 400838: 00 00 00 - 40083b: 89 45 bc mov %eax,-0x44(%rbp) - 40083e: b0 00 mov $0x0,%al - 400840: e8 eb fb ff ff callq 400430 - 400845: bf 14 00 00 00 mov $0x14,%edi - 40084a: 89 45 b8 mov %eax,-0x48(%rbp) - 40084d: e8 ee fd ff ff callq 400640 - 400852: 48 bf 6c 09 40 00 00 movabs $0x40096c,%rdi - 400859: 00 00 00 - 40085c: 89 45 b4 mov %eax,-0x4c(%rbp) - 40085f: b0 00 mov $0x0,%al - 400861: e8 ca fb ff ff callq 400430 - 400866: 8b 3c 25 38 10 60 00 mov 0x601038,%edi - 40086d: 8b 75 ec mov -0x14(%rbp),%esi - 400870: 89 45 b0 mov %eax,-0x50(%rbp) - 400873: e8 18 fe ff ff callq 400690 - 400878: 89 45 ec mov %eax,-0x14(%rbp) - 40087b: 8b 45 ec mov -0x14(%rbp),%eax - 40087e: 48 83 c4 50 add $0x50,%rsp - 400882: 5d pop %rbp - 400883: c3 retq - 400884: 66 2e 0f 1f 84 00 00 nopw %cs:0x0(%rax,%rax,1) - 40088b: 00 00 00 - 40088e: 66 90 xchg %ax,%ax + 400829: c7 45 d4 05 00 00 00 movl $0x5,-0x2c(%rbp) + 400830: 89 45 bc mov %eax,-0x44(%rbp) + 400833: e8 b8 fd ff ff callq 4005f0 + 400838: 48 bf 6c 09 40 00 00 movabs $0x40096c,%rdi + 40083f: 00 00 00 + 400842: 89 45 b8 mov %eax,-0x48(%rbp) + 400845: b0 00 mov $0x0,%al + 400847: e8 e4 fb ff ff callq 400430 + 40084c: bf 14 00 00 00 mov $0x14,%edi + 400851: 89 45 b4 mov %eax,-0x4c(%rbp) + 400854: e8 e7 fd ff ff callq 400640 + 400859: 48 bf 6c 09 40 00 00 movabs $0x40096c,%rdi + 400860: 00 00 00 + 400863: 89 45 b0 mov %eax,-0x50(%rbp) + 400866: b0 00 mov $0x0,%al + 400868: e8 c3 fb ff ff callq 400430 + 40086d: 8b 3c 25 38 10 60 00 mov 0x601038,%edi + 400874: 8b 75 ec mov -0x14(%rbp),%esi + 400877: 89 45 ac mov %eax,-0x54(%rbp) + 40087a: e8 11 fe ff ff callq 400690 + 40087f: 89 45 ec mov %eax,-0x14(%rbp) + 400882: 8b 45 ec mov -0x14(%rbp),%eax + 400885: 48 83 c4 60 add $0x60,%rsp + 400889: 5d pop %rbp + 40088a: c3 retq + 40088b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 400890: 41 57 push %r15 400892: 41 56 push %r14 400894: 41 89 ff mov %edi,%r15d