Introduction to Data Structures and Linux Tool Usage
110 likes | 232 Views
This document serves as an introduction to data structures, focusing on essential Linux tools used in programming. It covers command-line utilities such as 'man' for accessing reference manuals, 'ftp' for file transfer, and 'telnet' for remote access, as well as the use of the 'vi/vim' text editor. Additionally, it explains the GNU compilation and debugging processes using 'g++', emphasizing the importance of Makefiles for managing complex projects efficiently. Understanding these tools is crucial for effective coding practices and project management in computer science.
Introduction to Data Structures and Linux Tool Usage
E N D
Presentation Transcript
Data Structures INTRODUCTION 2007 Spring Rhan Ha
Introduction • Prof. : 하 란 교수님 • T807, (02)320-1486 • Homepage : www.cs.hongik.ac.kr/~rhanha • E-Mail : rhanha@cs.hongik.ac.kr • TA : 장 상 욱 • Real-Time Systems Lab. T820 • E-Mail : swjang94@gmail.com • 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++
.c .h Compile & Debug (GNU)
Make • 다수의 소스 파일로 구성된 프로젝트 • 대개 길고 복잡한 컴파일러 호출을 요구 • 복잡한 명령 라인을 파일로 저장하여 작업을 단순화 • 재구성 시간을 최소화 • 내용이 변경된 파일만을 재구성
target : dependency dependency […] command command […] [Tab] 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 사용