add progs for lec2
This commit is contained in:
		
							parent
							
								
									bd9d82beda
								
							
						
					
					
						commit
						09ffe0ec51
					
				
							
								
								
									
										8
									
								
								related_info/lec2/Makefile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								related_info/lec2/Makefile
									
									
									
									
									
										Normal file
									
								
							@ -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
										
									
								
								related_info/lec2/hello
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								related_info/lec2/hello
									
									
									
									
									
										Executable file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										5
									
								
								related_info/lec2/hello.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								related_info/lec2/hello.c
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,5 @@
 | 
			
		||||
#include <stdio.h>
 | 
			
		||||
void main(void)
 | 
			
		||||
{
 | 
			
		||||
  printf("hello world\n");
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user