Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
fx_s1615
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
RealCoding2_Team1
fx_s1615
Commits
5e662186
Commit
5e662186
authored
4 years ago
by
siho jo
Browse files
Options
Downloads
Patches
Plain Diff
Update README.md
parent
1148f40a
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+18
-16
18 additions, 16 deletions
README.md
with
18 additions
and
16 deletions
README.md
+
18
−
16
View file @
5e662186
...
@@ -513,10 +513,15 @@ double로 input을 받아서 fx_s1615로 변환하여 사칙연산을 수행한
...
@@ -513,10 +513,15 @@ double로 input을 받아서 fx_s1615로 변환하여 사칙연산을 수행한
<br>
<br>
<br>
<br>
*
실행 방법
*
테스트 빌드 및 분석 방법
-
다음과 같은 순서로 빌드 후 분석한다.
1.
``make DEFINE=D[macro] PG=-pg``
2.
``./test``
3.
``gprof test``
- 조건부 컴파일을 이용하여 macro의 정의에 따라 다른 test가 수행되도록 코드를 구성하였다.
```
```
1. ifdef를 이용하여 macro의 정의에 따라 각각 다른 test가 수행되도록 코드를 구성하였다.
[ifdef로 정의된 macro]
[ifdef로 정의된 macro]
(1) MULTIPLE_TIME_TEST : 곱셈을 수행하는 경우, double vs long long 시간 테스트
(1) MULTIPLE_TIME_TEST : 곱셈을 수행하는 경우, double vs long long 시간 테스트
(2) DIVISION_TIME_TEST : 나눗셈을 수행하는 경우, double vs long long 시간 테스트
(2) DIVISION_TIME_TEST : 나눗셈을 수행하는 경우, double vs long long 시간 테스트
...
@@ -525,10 +530,7 @@ double로 input을 받아서 fx_s1615로 변환하여 사칙연산을 수행한
...
@@ -525,10 +530,7 @@ double로 input을 받아서 fx_s1615로 변환하여 사칙연산을 수행한
-->FX_S1615_MUL(a, b), FX_1615_LONGLONG_MUL1(a, b),FX_1615_LONGLONG_MUL2(a, b),FX_1615_LONGLONG_MUL3(a, b)
-->FX_S1615_MUL(a, b), FX_1615_LONGLONG_MUL1(a, b),FX_1615_LONGLONG_MUL2(a, b),FX_1615_LONGLONG_MUL3(a, b)
(5) FX_DIV_TEST : scanf로 두개의 숫자를 받았을 때, 정의된 4가지 함수로 나눗셈을 수행해주는 테스트
(5) FX_DIV_TEST : scanf로 두개의 숫자를 받았을 때, 정의된 4가지 함수로 나눗셈을 수행해주는 테스트
-->FX_S1615_DIV(a, b), FX_1615_LONGLONG_DIV01(a,b),FX_1615_LONGLONG_DIV02(a,b),FX_1615_LONGLONG_DIV03(a,b)
-->FX_S1615_DIV(a, b), FX_1615_LONGLONG_DIV01(a,b),FX_1615_LONGLONG_DIV02(a,b),FX_1615_LONGLONG_DIV03(a,b)
```
2. make 수행
* make CFLAGS=-D[MACRO]
* ./test 로 결과 확인하기
```
```
...
...
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