1 / 12

Discrete Mathematics

Discrete Mathematics. #1. Makefile 작성법 2005 Fall Rhan Ha. 기본 Tool 사용법. man : Find and display reference manual pages Usage: >man [query] ftp : ftp.ce.hongik.ac.kr Usage: >ftp [ip _ address | Hostname] telnet : sol.ce.hongik.ac.kr Usage : >telnet [ip_address | Hostname]

callum
Télécharger la présentation

Discrete Mathematics

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Discrete Mathematics #1. Makefile 작성법 2005 Fall Rhan Ha

  2. 기본 Tool 사용법 • man : Find and display reference manual pages • Usage: >man [query] • ftp : ftp.ce.hongik.ac.kr • Usage:>ftp [ip_address | Hostname] • telnet : sol.ce.hongik.ac.kr • Usage: >telnet [ip_address | Hostname] • vi/vim editor : Screen-oriented display editor • Usage: >vi [options][filename] • More Info.: man page

  3. 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++

  4. .c .h Compile & Debug (GNU)

  5. Compile & Execution

  6. Make • 다수의 소스 파일로 구성된 프로젝트 • 대개 길고 복잡한 컴파일러 호출을 요구 • 복잡한 명령 라인을 파일로 저장하여 작업을 단순화 • 재구성 시간을 최소화 • 내용이 변경된 파일만을 재구성

  7. target : dependency dependency […] command command […] [Tab] Make 작성 • Makefile 일반적인 형식 • target • 생성하기 원하는 파일 (바이너리나 오브젝트 파일) • dependency • target을 생성하기 위해 입력으로 요구되는 하나 이상의 파일 목록 • command • 컴파일러 호출과 같이 target를 생성하는데 필요한 단계 • 디폴드 디렉토리는 : 현재 작업 디렉토리 • ex)test.o (target):test.h test.c (dependency) <TAB>g++ -c test.c (command) command 부분은 반드시 제일 앞에 TAB character 사용

  8. Make

  9. Discrete Mathematics #2. Submit 방법 2005 Fall Rhan Ha

  10. Submit • >telnet linux1.ce.hongik.ac.kr로 접속 • Using Submit, can overwrite • Make sure your program on Linux execution before submission • 과제 파일명은 학번_과제번호.c로 해주세요. Ex) 학번이 A511001이고 첫 번째 과제일 경우 과제 파일명은 a511001_hw1.c입니다. 꼭 지켜주세요!!

  11. Submit 제출요령 • Usage : submit • #> submit (T/A 계정) (제출 디렉토리) • - 계정 : rtsta • 제출 디렉토리 구성 : 반이름/과제 • ex) A반, 과제#1 : a/hw1 • ex2) submit rtsta a/hw1 제출할 파일들이 /ce/a5/cea5001/dm/hw1에 있다면 Submit 명령은 과제가 있는 directory로 가셔서 Submit을 해야 합니다. 과제를 submit할 때는 반드시linux1(or linux2, 3, 4)에 접속해서 실행!!

  12. Submit 예제

More Related