Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- 프로그래밍언어
- 운영체제
- scheduling
- virtual memory
- System Call
- 스케줄러
- DRAM
- FIFO
- C언어
- Fair-Share Scheduling
- Segmenation
- Round robin
- Process
- STCF
- Computer Architecture
- scheduler
- SJF
- 문법
- 컴퓨터
- 컴퓨터 구조
- PIM
- Operating System
- Stride scheduling
- sceduling
- 어셈블리
- Process in Memory
- 프로그래밍
- computer architercure
- MLFQ
Archives
- Today
- Total
목록프로그래밍언어 (1)
Nyong!
if 문과 switch 문의 차이(어셈블리 레벨에서)
if, else if를 사용한 문법과 switch문은 결과적으로 같은 역할을 수행할 수 있다. 아래 코드를 확인해보자 //if 문 예시 int main(){ int i; scanf("%d", &i); if (i == 0) printf("input is 0"); else if (i == 1) printf("input is 1"); else if (i == 2) printf("input is 2"); else if (i == 3) printf("input is 3"); else if (i == 4) printf("input is 4"); else if (i == 5) printf("input is 5"); else printf("wrong input") return 0; } //switch 문 예시 int ..
Study/C
2022. 5. 26. 18:24