Pārlūkot izejas kodu

add progs for lec2

main
chyyuu pirms 12 gadiem
vecāks
revīzija
09ffe0ec51
3 mainītis faili ar 13 papildinājumiem un 0 dzēšanām
  1. +8
    -0
      related_info/lec2/Makefile
  2. Binārs
      related_info/lec2/hello
  3. +5
    -0
      related_info/lec2/hello.c

+ 8
- 0
related_info/lec2/Makefile Parādīt failu

@ -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

Binārs
related_info/lec2/hello Parādīt failu


+ 5
- 0
related_info/lec2/hello.c Parādīt failu

@ -0,0 +1,5 @@
#include <stdio.h>
void main(void)
{
printf("hello world\n");
}

Notiek ielāde…
Atcelt
Saglabāt