no image
CentOS 7 : gcc 버전 업데이트 / vim 설정
gcc 버전 업데이트vault 사용해야 한다. 이전 포스팅에서 참조한 블로그를 보면 지금 CentOS 7이 EOL(End Of Life) 이므로 더 이상 지원하지 않는다. 그래서 이전 업데이트가 보관되어 있는 vault 환경에서 install 하도록 다운로드 repository를 수정하는 작업이다.저번에 Base.repo는 수정했으니까 거기는 됐는데도sudo yum install devtoolset-10-gcc devtoolset-10-gcc-c++이 안된다. 그러면Could not resolve host: mirrorlist.centos.orgcurl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error" 이런 오류 코드가 발생하는데, 그..
10:17:08
no image
간단 키보드 사용기
최근에 키보드를 하나 장만했습니다. 그런 기념으로 지금껏 사용한 키보드들을 한 번 리뷰해보려고 합니다. 1. ATWO-AG0301 나의 첫 텐키리스 게이밍 키보드. 아마 적축으로 선택해서 처음 써봤는데, 반응속도가 빨라서 좋았던 기억이 있습니다. 근데 이사 오면서 짐을 잘못 실었는지, 여기저기 문제가 많이 생겨서 지금 구석에 두고 사용은 안 하고 있던걸 꺼내왔습니다. 2. 로지텍 G512 Carbon이건 제가 산 건 아니고, 형이 쓰던걸 물려받은 건데, 시끄러워서 그렇지 게임 및 타이핑이 정말 재밌습니다. 좀 오래 쓴 거라 몇몇 키에 문제가 생겨서 지금은 사용 못 하게 된 애정 있는 제품입니다. 아마 이 제품을 시작으로 제가 로지텍을 좋게 봤던 것 같네요 ㅎ... 3. 로지텍 MX Mechanica..
2025.05.01
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