no image
Computer Architecture (2) : Instructions: Language of the Computer
Operations of the Computer Hardware먼저 어셈블리어에 대해서 살펴보면, Assembly language is a human-readable representation of machine instructions, using mnemonics instead of binary codes. 어셈블리어는 기계어를 사람이 읽을 수 있도록 만든 표현 방식입니다. 2진수 대신 기호를 사용합니다. CPU는 0과 1로 된 기계어만 이해합니다. 그런데 사람이 이처럼 0과 1로만 직접 코딩하기는 너무 힘들고 오류 발생 가능성도 높기 때문에 기호로 명령어를 표현하게 했습니다. 이게 바로 어셈블리어 입니다.The operations performed by the hardware are specified..
2025.04.28
no image
Seminar (11) Algorithm : Algorithm Analysis
https://product.kyobobook.co.kr/detail/S000007672724 Data Structures and Algorithm Analysis in C++ | Weiss - 교보문고Data Structures and Algorithm Analysis in C++ | Advanced Data Structures/Algorithms C++ Data Structures and Algorithm Analysis in C++, 3/e Mark Allen Weiss, Florida International University ISBN : 0-321-37531-9 Mark Allen Weiss teaches readers to reduce tiproduct.kyobobook.co.kr알고리즘 공..
2025.04.27
no image
Seminar (10) C++ : Value Category
Value CategoryC++ 에서는 타입 뿐아니라 값에도 종류가 있습니다.어떤 값인가? 이게 무슨 말인지 살펴보겠습니다. 위처럼 값 표현식에는 총 5개로 나눠진 값들이 있습니다. glvalueA glvalue is an expression whose evaluation determines the identity of an object, bit-field, or function.어떤 객체, bit-field, 함수의 정체성을 결정하는 표현식이다. prvalueA prvalue is an expression whose evaluation initializes an object or bit-field, or computes the value of the operand of an operator, as s..
2025.04.27
no image
Computer Architecture (1) : Computer Abstractions and Technology
사실 제 전공과 Computer Architecture는 밀접한 관련은 없습니다.일을 시작하면서, 이 부분을 좀 배우고 오면 좋겠다는 의견이 있어서 Chat GPT를 이용해서 중요 내용만 빠르게 공부하면서, 해당 내용을 블로그에 정리하려 합니다. 추가로 OS도 조금 공부해서 정리할 예정입니다.https://product.kyobobook.co.kr/detail/S000006082876 Computer Organization and Design MIPS Edition | Patterson - 교보문고Computer Organization and Design MIPS Edition | Moves forward into the post-PC era with new examples, exercises, and ..
2025.04.26
no image
Seminar (9) C++ : Dependent Type / Auto
Dependent TypeDependent Type(의존 타입) 이란 뭘까요?template void func() { T::t* p;}class A{ const static int t;};class B{ using t = int;};이런 코드가 있다고 해보면, A에서는 t 곱하기 p.B에서는 t 포인터 p를 뜻하게 됩니다.이처럼 템플릿 인자에 의존하는 타입을 Dependent type(의존 타입)이라고 합니다. 그런데 이런 dependent type이 이렇게 보일 때는 쉬워 보일 수도 있지만 다음 코드를 보면 좀 더 구체적으로 체감이 됩니다.template struct INT { static const int num = N;};template struct add{ typedef INT result;};t..
2025.04.24
no image
Seminar (8) C++ : Templates
Templates A template is a blueprint for generating code with different types. It allows you to write generic, reusable components. Click here to view the example code .▼ 더보기Let's write a simple add function for integers and doubles.But instead of repeating the code for each type:int addInt(int a, int b) { return a + b;}double addDouble(double a, double b) { return a + b;} We can use a te..
2025.04.13
no image
Seminar (7) C++ : Standard I/O Library
Standard Input and Output in C++ ios_baseThe most fundamental base class.It provides formatting control (like flags, precision, width) and basic stream management. iosDerived from ios_base, it connects to the actual stream buffer (streambuf).Both istream and ostream inherit from this class. istreamProvides input functionality. For example, std::cin is of type istream. ostreamProvides output fun..
2025.04.13
no image
Seminar (6) C++ : Operator Overloading
Operator OverloadingOperator overloading allows you to redefine the way operators work for user-defined types (classes). This enables natural and intuitive syntax for your custom types, like adding two objects using the + operator.Vector a(1, 2);Vector b(3, 4);Vector c = a + b; // operator+ is overloaded Basic Syntax To overload an operator in a class:class Vector {public: int x, y; Vecto..
2025.04.01
no image
Seminar (5) C++ : Namespace, Reference, OOP
Namespace In C++, a namespace is a declarative region that provides a scope to the identifiers inside it. C++ uses namespaces to organize code and prevent naming collisions, especially when integrating third-party libraries or large codebases. Click here to view the example code .▼ 더보기#include namespace mytools { void greet() { std::cout Using directives and declarations Click here t..
2025.04.01