From 09ffe0ec511ca12c3504b23d28b6fc6dec1d437a Mon Sep 17 00:00:00 2001 From: chyyuu Date: Mon, 23 Sep 2013 09:20:58 +0800 Subject: [PATCH] add progs for lec2 --- related_info/lec2/Makefile | 8 ++++++++ related_info/lec2/hello | Bin 0 -> 8559 bytes related_info/lec2/hello.c | 5 +++++ 3 files changed, 13 insertions(+) create mode 100644 related_info/lec2/Makefile create mode 100755 related_info/lec2/hello create mode 100644 related_info/lec2/hello.c diff --git a/related_info/lec2/Makefile b/related_info/lec2/Makefile new file mode 100644 index 0000000..1c3bb74 --- /dev/null +++ b/related_info/lec2/Makefile @@ -0,0 +1,8 @@ +all: hello.c + echo "compile and watch the syscalls from hello" + gcc -o hello hello.c + strace -c ./hello + echo "watch the interrupts in linux" + more /proc/interrupts +clean: + rm ./hello diff --git a/related_info/lec2/hello b/related_info/lec2/hello new file mode 100755 index 0000000000000000000000000000000000000000..37ea79ca9b48122d34736f32de6fa85672b17d9f GIT binary patch literal 8559 zcmeHMZ){sv6~DHVCSBXaDP{9oMlI%|Y$9&cWoe+4y)BMZnhIX%Yg}(_EFpDpJ2ZUzX6G4gP0oDX`PcU z(Se(Git-EG$c0veV8{;d(~?rc#qKMxTDZQ>Ib2)3+Jh&i@II7+mAW@k9PA+>zdVJWxjC5Zk^u_b#wYR?bjTS)hGQZs%~mQ z+PTp{j^s%yyfs$^ZTfH(WD4Qdtd`#=nX0~Z1#<7ZvC3=Dnw2-r>9-aRBx2XE%wndR z*RL9yUH=@|{4bz*XW~5hpV^H-51Bm%m^r=JVODOQ^dG%8LlshhcaC1BqUv1d#wo&P zND}?4ivj4Hm0z1zZ$D-FX3fg0=4U3LnlJpZX8$JJPwhB@cvZRU5G?1vg+PwJ z+ByQr_rW!a$DG~~S_uVvLoI}^LzlxHh^}(8I(ziiH(_$?1d@sKK2r+nKy^GpQ8n2iMEXHt<+ z9Jz4(j2-EYpLssA1;aUjV5ZOo>Vs<&=k=KL5c@FKCezt$A$+n>%%+rYLts1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-c`Jgkw%WEBR2;`jP_2zWF7Uf^q+?R(=zyJVLqCZglG z3EVSu(2B>NPFR*orHkofnG#N^mYuW4vxR)Rq?$mMl`2@rvW2l^)=JrhV#!LDPbnPz zj%U+$Iu-5T);j>tO_VG;ggQq`3&+IbY2_S3Q{`OlG)!EQMQ7IrRecwvV;(s;xObPe zYu_+}c3L3$2BVa+hL7wU+#4H$ma9bHgeq%yeE-hDxV3*|1k;zKh)H%hK^u zS;wlZSYoeL@0i5iA?lVyax9xxbnbO7QT0WuVYn|+t+YNCvls6btVh>!x$<1jq902I zYciQnp++mV9~GuDd8=GXqj~jUsd);03Xq#;;XuxL=hAo23F{z_?@%^bDq(Of3k{Nv Oq?XEPH?&jto%#>#lQQD~ literal 0 HcmV?d00001 diff --git a/related_info/lec2/hello.c b/related_info/lec2/hello.c new file mode 100644 index 0000000..5b9f577 --- /dev/null +++ b/related_info/lec2/hello.c @@ -0,0 +1,5 @@ +#include +void main(void) +{ + printf("hello world\n"); +}