Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
battle_c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LEESANGKYEONG
battle_c
Commits
2c964e52
Commit
2c964e52
authored
4 years ago
by
LEESANGKYEONG
Browse files
Options
Downloads
Patches
Plain Diff
Update
parent
0a2af3b5
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
HW2_three files/README.md
+8
-3
8 additions, 3 deletions
HW2_three files/README.md
HW3/README.md
+2
-0
2 additions, 0 deletions
HW3/README.md
with
10 additions
and
3 deletions
HW2_three files/README.md
+
8
−
3
View file @
2c964e52
# 실전코딩2 HW2
-
gcc
# CPP
# CPP
-
include file
-
include file
-- ex) #include
<stdio.h>
or "file.h"
-- ex) #include
<stdio.h>
or "file.h"
...
@@ -23,7 +26,9 @@
...
@@ -23,7 +26,9 @@
-
difference between gcc -DPRINT_ID main.c func.c and gcc main.c func.c
-
difference between gcc -DPRINT_ID main.c func.c and gcc main.c func.c
-
gcc -DPRINT_ID는 PRINT_ID가 정의된 상태로 컴파일 되므로 #ifdef 실행
-
gcc -DPRINT_ID는 PRINT_ID가 정의된 상태로 컴파일 되므로 #ifdef 실행
## 이론
# MakeFile 추가 HW4
## Make 이론
-
maintain, update, and regenerate group of programs
-
maintain, update, and regenerate group of programs
-
많은 프로그램 모듈들로 구성된 대규모 프로그램을 효율적으로 유지하고, 일관성 있게 관리 하도록 도와주는 도구
-
많은 프로그램 모듈들로 구성된 대규모 프로그램을 효율적으로 유지하고, 일관성 있게 관리 하도록 도와주는 도구
-
Target으로부터 dependency 판단하여 오브젝트파일 생성, 라이브러리 생성, 오브젝트 파일로부터 실행파일 생성
-
Target으로부터 dependency 판단하여 오브젝트파일 생성, 라이브러리 생성, 오브젝트 파일로부터 실행파일 생성
...
@@ -33,14 +38,14 @@
...
@@ -33,14 +38,14 @@
-
프로그램의 종속 구조를 빠르게 파악할 수 이쓰며 관리 용이
-
프로그램의 종속 구조를 빠르게 파악할 수 이쓰며 관리 용이
-
단순 반복 작업 및 재작성을 최소화
-
단순 반복 작업 및 재작성을 최소화
## 구성
##
Make
구성
-
목적파일(Target): -c 명령어를 수행하여 결과로 출력된 파일
-
목적파일(Target): -c 명령어를 수행하여 결과로 출력된 파일
-
의존파일(Dependency): 목적파일을 만드는데 필요한 파일
-
의존파일(Dependency): 목적파일을 만드는데 필요한 파일
-
명령어: 필요한 명령어들
-
명령어: 필요한 명령어들
-
매크로: 코드 단순화를 위한 작업
-
매크로: 코드 단순화를 위한 작업
-
!
[
1
](
./image/1.PNG
)
-
!
[
1
](
./image/1.PNG
)
## 매크로
##
Make
매크로
-
$@: 현재의 Target 파일명
-
$@: 현재의 Target 파일명
-
$?: 현재의 Target보다 더 최근에 갱신된 의존 파일 명단
-
$?: 현재의 Target보다 더 최근에 갱신된 의존 파일 명단
-
$
*
: 현재의 Target보다 더 최근에 갱신된 현재 의존 파일 명단
-
$
*
: 현재의 Target보다 더 최근에 갱신된 현재 의존 파일 명단
...
...
This diff is collapsed.
Click to expand it.
HW3/README.md
+
2
−
0
View file @
2c964e52
# 실전코딩2 HW3
# Difference between Compiler and interpreter
# Difference between Compiler and interpreter
-
compiler
-
compiler
1.
프로그래밍 언어를 Runtime 이전에 기계어로 해석
1.
프로그래밍 언어를 Runtime 이전에 기계어로 해석
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment