Data Structures
-
Upload
drake-schwartz -
Category
Documents
-
view
40 -
download
5
description
Transcript of Data Structures
Data Structures
INTRODUCTION
2007 Spring Rhan Ha
Introduction Prof. : 하 란 교수님
T807, (02)320-1486 Homepage : www.cs.hongik.ac.kr/~rhanha E-Mail : [email protected]
TA : 장 상 욱 Real-Time Systems Lab. T820 E-Mail : [email protected] RTS Lab. Homepage : http://www.cs.hongik.ac.kr/~rts
Grading Policy (cont.)
총 과제 점수 100 점 중 20 점 미만 획득 시 F
Copy : F
No Submission : Assignment = 0
Data Structures
#1 Introduction to Linux
기본 Tool 사용법
man : Find and display reference manual pages Usage: >man [query]
ftp : ftp.ce.hongik.ac.kr Usage: >ftp [ip_address | Hostname]
telnet : linux1.ce.hongik.ac.kr Usage: >telnet [ip_address | Hostname]
vi/vim editor : Screen-oriented display editor Usage: >vi [options][filename]
More Info.: man page
Compile & Debug (GNU)
g++: C and C++ compilers are integrated Usage : g++ [-options | filenames]…
-c [source_filename] : compile & generate an object file (.o)
-o [execute_filename] [object_files] [libraries] : generate execution file
-g <source_filename> : use debug More info. >man g++
Compile & Debug (GNU)
.c .h
Compile & Execution
Make
다수의 소스 파일로 구성된 프로젝트 대개 길고 복잡한 컴파일러 호출을 요구
복잡한 명령 라인을 파일로 저장하여 작업을 단순화
재구성 시간을 최소화 내용이 변경된 파일만을 재구성
Make 작성 Makefile 일반적인 형식
target depandency 를 정의한 Lable
dependency command 의 입력으로 요구되는 하나 이상의 파일 목록
command 컴파일러와 같은 명령어 호출부 디폴드 디렉토리는 : 현재 작업 디렉토리
ex) test.o (target):test.h test.c (dependency) <TAB>g++ -c test.c (command) command 부분은 반드시 제일 앞에 TAB character 사용
target : dependency dependency […]target : dependency dependency […]commandcommandcommandcommand[…][…]
[Tab][Tab]
Make