본문 바로가기

프로그램언어/C++

GDB를 이용한 Linux 소프트웨어의 디버깅 David Seager, CICS/390 Development, IBM Hursley 요약: Linux의 특징은 GNU 디버거(debugger) 또는 쉘의 gdb이다. gdb 사용으로 프로그램의 내부 구조 이해, 변수 값의 인쇄 및 소스 코드를 통한 정지점과 싱글 스텝을 설정할 수 있다. gdb는 프로그램 코드 상의 문제를 해결할 수 있는 강력한 무기이다. 이 글에서 gdb가 얼마나 멋지고 유용한지를 설명한다. 컴파일 하기 디버그하기 전에, 디버그 하고자 하는 프로그램에 디버깅 정보를 컴파일 한다. 그럼으로써 gdb가 사용했던 변수, 라인 및 함수를 실행할 수 있다. gcc(또는 g++)에서 '-g' 옵션을 이용하여 프로그램을 컴파일 한다. : gcc -g eg.c -o eg 위로 gdb 실행하기 gdb.. 더보기
System Error Codes (0-499) Note The information on this page is intended to be used by programmers so that the software they write can better deal with errors. If you are an end-user that is experiencing difficulty with an application you are installing or running, contact customer support for the software that is displaying the error message. To obtain support for a Microsoft product, go to http://support.microsoft.com. .. 더보기
tbb::atomic testRunner /* Copyright 2005-2009 Intel Corporation. All Rights Reserved. This file is part of Threading Building Blocks. Threading Building Blocks is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. Threading Building Blocks is distributed in the hope that it will be useful, but WITHOUT ANY WAR.. 더보기
RFC 1321 - MD5 Message-Digest Algorithm 출처 : http://www.electrictoolbox.com/rfc/1321/ The MD5 Message-Digest Algorithm Status of this Memo This memo provides information for the Internet community. It does not specify an Internet standard. Distribution of this memo is unlimited. Acknowlegements We would like to thank Don Coppersmith, Burt Kaliski, Ralph Merkle, David Chaum, and Noam Nisan for numerous helpful comments and suggestions... 더보기
Intel Threading Building Blocks 관련 내용 Documentation Blogs Code Samples Doxygen Open Source Documentation Getting Started Guide [PDF 120KB] Tutorial [PDF 539KB] Reference Manual [PDF 988KB] Design patterns [PDF 262KB] CHANGES file [TXT 35KB] Commercial Documentation Release Notes [TXT 6KB] Installation Guide [PDF 22KB] Getting Started Guide [PDF 120KB] Tutorial [PDF 528KB] Reference Manual [PDF 977KB] TBB's O'Reilly BookIntel® Thread.. 더보기
Intel Threading builing block Document Documentation Blogs Code Samples Doxygen Open Source Documentation Getting Started Guide [PDF 120KB] Tutorial [PDF 539KB] Reference Manual [PDF 988KB] CHANGES file [TXT 35KB] Commercial Documentation Release Notes [TXT 6KB] Installation Guide [PDF 22KB] Getting Started Guide [PDF 120KB] Tutorial [PDF 528KB] Reference Manual [PDF 977KB] TBB's O'Reilly Book Intel® Threading Building Blocks: Outfit.. 더보기
유닉스 계열 정보 얻어 오기. 테스트를 위한 코드 입니다. 목적 : 어떠한 제품군이 존재합니다. 제품군에 따라서 그때 그때 프로그램 객체를 따로 생성하게 되면 어떠한 제품군을 선택하느냐에 따라서 설계 및 적정선의 코드를 선들여야 한다는데서 착안하여 미리 코딩을 해놓고 정보을 얻어서 자동으로 객체를 생성하도록 목표를 삼고 있습니다. ㅇ Abstractor Factory 패턴을 공부하다가 착안한 내용입니다. #include #include using namespace std; int main() { struct utsname sys_info; uname(&sys_info); cout 더보기
간단한 C++ 매크로 만들어보기. 이상하게 제 머리 속에 지우게가 있다는 결론을 내리네요. 간단하게 사용하면서도 손가락은 기억을 하는데 정신 넉놓고 있으면 손가락은 기억을 하는지 잘 써내려갑니다. 그런데 머리 굴리면 그때 부터 손가락은 가만히 정지하게 되는 결론을 내렸습니다. 즉 머리를 쓰게 되면 모든걸 지워버리는 초강력... 머리속 지우개..ㅠ_ㅠ 매크로 관련되서 사용하려고 보니깐 기억이 또 안나네요.. 미치겠습니다..ㅠ_ㅠ // variadic_macros.cpp #include #define EMPTY #define CHECK1(x, ...) if (!(x)) { printf(__VA_ARGS__); } #define CHECK2(x, ...) if ((x)) { printf(__VA_ARGS__); } #define CHECK3(.. 더보기