Skip to content
Snippets Groups Projects
Commit 77400b94 authored by Choi Jinyoung's avatar Choi Jinyoung
Browse files

update readme and makefile

parent 49ec25c0
No related branches found
No related tags found
1 merge request!2Test3
*.o
*.out
*.exe
.vscode/
Makefile 0 → 100644
SRCS = calculator.c
OBJS := ${SRCS:.c=.o}
CC := gcc
SYSTEM :=
TYPE :=
CFLAGS := -c -Wall
ajou_fx : ${OBJS}
$(CC) -o $@ $^ -lm
.c.o:
${CC} -D${SYSTEM} -D${TYPE} ${CFLAGS} $<
clean :
-rm *.o
rm ajou_fx
dep:
gccmakedep ${SRCS}
......@@ -53,9 +53,45 @@ gcc Compiler
연산의 정확도는 입력하는 숫자의 범위에 따라 차이가 있지만 보편적으로 가장 정확한 연산을 하는 함수를 진한 색으로 표시하였다.
### 6. 실행 방법
```
make SYSTEM=_FX_(XXYY) TYPE=_FX_(TYPE)
```
```
./ajou_fx
```
### 7. 예시
- double
```
make SYSTEM=_FX_2308 TYPE=_FX_DOUBLE
./ajou_fx
```
```
1. ADD 2. SUB 3. MUL 4. DIV 5. EXIT : 3
Enter the two number : 23 34
Result = 3
1. ADD 2. SUB 3. MUL 4. DIV 5. EXIT : 5
Program terminated
```
```
make clean
```
- long long
```
make SYSTEM=_FX_2308 TYPE=_FX_LONGLONG
./ajou_fx
```
```
1. MUL1 2. MUL2 3. MUL3 4. MUL4 5. DIV1 6. DIV2 7. EXIT : 4
Enter the two number : 34 56
6
1. MUL1 2. MUL2 3. MUL3 4. MUL4 5. DIV1 6. DIV2 7. EXIT : 7
Program terminated
```
```
make clean
```
### Reference
[FX_S1516](https://git.ajou.ac.kr/battle_c_3/fx_s1516)
[FX_S1615](https://git.ajou.ac.kr/realcoding2_team1/battle_c_1)
......
File deleted
#include "fx_s1615_double.h"
#include "fx_1615_longlong.h"
#include "fx_s1615_longlong.h"
#define FX32_90 0x002D0000
#define FX32_180 0x00590000
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment