컴퓨터 공부/유닉스 시스템 프로그래밍 10

[4월 22일 3교시] GDB - GNU Debugger

진도표 : 629~662 (UNIX System Programming) 실행 gdb [프로그램명] [인수들...] ※ 중요한 명령어들은 약어(알파벳 한글자)만 사용해도 된다. (632쪽 참고) 프로그램 컴파일 gcc -o [실행파일] -g [소스파일] -g 옵션이 있어야 gdb프로그램에서 디버깅을 할 수 이싿. info breakpoint : breakpoints(멈출 위치)에 대한 정보를 보..

[4월 22일 2교시] 공유 라이브러리

공유라이브러리 이름 libc.so.[version number].[minor version].[release number] version에 따라 접미사가 붙는다. 예) libc.so.5.m.r library name 첫번째 확장자까지를 뜻함. 예) lib.so soname  버전 번호까지 표시되어 있다. soname은 symbolic link로 되어 있고 최신 버젼과 연결되어 있다. 예) libc.so.[version number] ※ 컴파일러는 library..

[스터디] Beginning Linux 4e - 2. 쉘 프로그래밍

ldd : which shared libraries are required by a program. shell a program that act as the interface between you and the Linux system, enabling you to enter commandds for the operating system to execute. perform some relatively simple task organize process control, so that commands run in a predetermined sequence dependent on the successful completion of each stage. execute commands call Linux uti..

[4월 21일 3교시]C Compiler & Library Archive

진도표 : 554~565(UNIX System Programming)   GCC 참고 사이트 http:// gcc.gnu.org   .c -> 전처리 -> .i -> assemble -> .s  -> compile -> .o -> link -> a.out   컴파일과정 전처리 옵션 -E(cpp) gcc -E hello.c > hello.i assemble 옵션 -S compile  옵션 ? (as) gcc -c hello.s link 옵션 ? (ld)   라이브러리 바인딩 동적(윈도우즈의 dll)  - 공유라이..