컴퓨터구조
-
[CSAPP] Ch2. Data Representations in Memory 데이터 표현컴퓨터구조 2023. 6. 14. 00:12
CH 2.1 ~ CH 2.3 일반적으로 메모리라고 하면 RAM 메모리를 말하며, byte 단위이다. 개별 "프로세스"마다 개별 주소가 주어진다. Bits & Bytes 트랜지스터는 두 개의 상태를 가지므로 컴퓨터는 bit를 사용한다. Bit는 2진수 자릿수를 의미하고 bit 8개가 모이면 1 byte가 된다. 즉, 1 byte = 8 bit N개의 비트가 주어지면 2^N개의 고유한 값을 표현할 수 있다. Encoding Byte Values 프로세서는 일반적으로 byte의 배수를 사용한다. 주로 1,2,4,8,16 intel data name: • Byte - 1바이트(8비트) • Word - 2바이트(16비트) • Double word - 4바이트(32비트) • Quad word - 8바이트(64비트)..
-
[CSAPP] CH1. Introduction to Computer Systems - 컴퓨터구조에 대한 이해컴퓨터구조 2023. 6. 10. 03:33
5 great realities of Computer Systems #1. Int는 정수(Integers)가 아니고, Float은 실수(Reals)가 아니다. 이게 무슨 말이냐, 예를 들어서 이해를 해보자. x^2>0 이 식이 항상 성립하는가? x가 Float이라면, 그렇다. x가 int 자료형이라면 만약 x=40000일 때, 40000 * 40000= 1600000000이 나와서 저 식은 참이 될 것이다. 하지만, x가 5만이라면? x^2은 int 의 숫자범위를 벗어나 쓰레기 값이 나올 것이다.(주로 음수 값) 이것이 반례이다. 또하나 식을 살펴보면, (x + y) + z = x + (y + z) 이 식 또한 항상 성립할까? 우리가 잘 아는 교환법칙이다. 당연히 실수(Real Number)에서도 성립한..
-
CSAPP로 공부하는 컴퓨터 구조컴퓨터구조 2023. 6. 9. 02:44
1학기에 전공으로 컴퓨터구조 과목을 수강했다. CSAPP 교재와 함께 Carneige Melon University의 Introduction to Computer Systems 강의를 들으며 공부를 했는데 솔직히 정말 어렵다. 공부하는데 시간도 정말 많이 썼다. 한 학기 동안 열심히 배운 노력들을 까먹지 않기 위해서 기록하고자 한다. 추천하는 공부 방식은, CMU 강의 -> 블로그 글(꼭 여기가 아니더라도...) -> 교재(CSAPP) 읽어보기 이렇게 3단계로 개념을 공부하면 처음엔 어렵고 잘 이해가 가지 않던 내용들도, 점점 이해할 수 있을 것이다. 최대한 자세히 설명을 쓰는 것을 목표로 하겠다, 내가 이해하기 힘들었던 부분까지. CMU 강의 CS계의 명강이라고... https://scs.hosted...