Ways of calling a function in c/c++ programming
c In c programming, functions can be invoked in two ways, one is call by value and the other is call by reference. Actual parameters are the variables, const...
c In c programming, functions can be invoked in two ways, one is call by value and the other is call by reference. Actual parameters are the variables, const...
c c code This is a C program that inputs one string and two numbers, and outputs the input string and numbers. ```c #include
A race condition occurs when two or more threads access a shared resource(such a file or variable) at the same time. In this case, each thread races to read ...
IPC using message queue A message queues is one of IPC mechanism. It provides a way to send and get data between 2 unrelated processes. The 2 processes acces...
while loop in shell file while_loop.sh ```bash #!/bin/bash
backtrace functions in c source code When we debugging, we sometimes need to figure out how the function was called. Here, I will describe the c functions th...
c shared library source code fourArithmeticOperation.h ```c #ifndef _FOURARITHMETICOPERATION #define _FOURARITHMETICOPERATION
FIFOs / Named pipe FIFOs(it’s called to named pipe) is one of IPC(inter-process communication) way to send/receive data between processes. Especially, it can...
c++ template c++ template allows you to declare/implement a generic function/class that has a type parameter T instead of declaring/implementing all function...
How to Compile Gtk 1 $ gcc -o example-2 example-2.c `pkg-config gtk+-3.0 –-cflags –-libs` How to Compile Gtkmm 1 $ g++ -o example-2 exam...
c++ #include std::cout과 « 를 이용하여 출력 std::cin과 » 를 이용하여 입력 std::endl 을 이용하여 줄바꿈 새로운 표준 라이브러리를 사용할 경우, #include 를 사용. 과거의 표준 라...
c In c programming, functions can be invoked in two ways, one is call by value and the other is call by reference. Actual parameters are the variables, const...
c c code This is a C program that inputs one string and two numbers, and outputs the input string and numbers. ```c #include
A race condition occurs when two or more threads access a shared resource(such a file or variable) at the same time. In this case, each thread races to read ...
IPC using message queue A message queues is one of IPC mechanism. It provides a way to send and get data between 2 unrelated processes. The 2 processes acces...
backtrace functions in c source code When we debugging, we sometimes need to figure out how the function was called. Here, I will describe the c functions th...
c shared library source code fourArithmeticOperation.h ```c #ifndef _FOURARITHMETICOPERATION #define _FOURARITHMETICOPERATION
FIFOs / Named pipe FIFOs(it’s called to named pipe) is one of IPC(inter-process communication) way to send/receive data between processes. Especially, it can...
DC motor A DC motor is a device that converts direct current electrical energe into mechanical energy according to Fleming’s left-hand rule. A DC motor is c...
External interrupt On the Arduino Uno board, digital input pin 2 and 3 can be used as interrupt pins. A interrupt handler for an interrupt can be registered ...
analogRead / analogWrite In the Arduino Uno board, there are 6 pins A0 ~ A5 that can read analog input voltages, and their resolution is 10 bits. That is, t...
7 Segment Display 7 segment is a module representing a number in an embedded system. The number is divided into seven segments and represented by one LED per...
circuit The circuit below is a 4bits binary counter with 4 red LEDs. The exact characteristics of the LED should be checked in its datasheet. It is assumed ...
Using “head” command to generate files create a 100M file filled with all 0’s. 1 $ head -c 100M /dev/zero > 100M_filled_with_zeros create a 100M file fil...
There are several ways to do split compression/decompression. Here I will introduce some methods. In this example, a 100MB file is divided and compressed in...
gentoo linux에서 Jekyll을 설치하는 방법에 대하여 간단히 포스팅한다. Jekyll을 사용하기 위해서는 ruby, bundler, jekyll이 설치되어 있어야 한다. Jekyll은 simple, blog-aware, static site generator tool...
c++ template c++ template allows you to declare/implement a generic function/class that has a type parameter T instead of declaring/implementing all function...
c++ #include std::cout과 « 를 이용하여 출력 std::cin과 » 를 이용하여 입력 std::endl 을 이용하여 줄바꿈 새로운 표준 라이브러리를 사용할 경우, #include 를 사용. 과거의 표준 라...
Labels in assembly code
arm gcc assembly in C General form of an inline assembler 1 asm(code : output operand list : input operand list : clobber list); Rotating bi...
Labels in assembly code
arm gcc assembly in C General form of an inline assembler 1 asm(code : output operand list : input operand list : clobber list); Rotating bi...
reference https://sourceware.org/gdb/onlinedocs/gdb/TUI.html
reference https://wiki.eclipse.org/CDT/StandaloneDebugger
reference https://www.gnu.org/software/global
Here I summarized vim commands that are used frequently for development. How to move cursor to the location in history
gentoo linux에서 Jekyll을 설치하는 방법에 대하여 간단히 포스팅한다. Jekyll을 사용하기 위해서는 ruby, bundler, jekyll이 설치되어 있어야 한다. Jekyll은 simple, blog-aware, static site generator tool...
How to Compile Gtk 1 $ gcc -o example-2 example-2.c `pkg-config gtk+-3.0 –-cflags –-libs` How to Compile Gtkmm 1 $ g++ -o example-2 exam...
How to Compile Gtk 1 $ gcc -o example-2 example-2.c `pkg-config gtk+-3.0 –-cflags –-libs` How to Compile Gtkmm 1 $ g++ -o example-2 exam...
gcc로 컴파일 할때, -fstack-usage 옵션을 사용하면, function별로 stack 사용량을 .su file에 저장한다. function별로 사용되는 스택을 보여주고, 누적된 것을 보려면, 아래 링크를 참조. https://dzone.com/a...
Gentoo Testing version 설치 하는 방법(패키지별) https://wiki.gentoo.org/wiki/Knowledge_Base:Accepting_a_keyword_for_a_single_package ncurses li...
reference https://newbedev.com/setting-up-and-using-meld-as-your-git-difftool-and-mergetool https://kparal.wordpress.com/2020/12/16/show-a-side-by-side-...
Tips dokuwiki에서 media manager에서 파일 업로드가 되지 않는 경우, 아래 내용 참고. https://github.com/splitbrain/dokuwiki/issues/1104 dokuwiki table에서 자동변형하...
reference https://wiki.eclipse.org/CDT/StandaloneDebugger
reference https://wiki.eclipse.org/CDT/StandaloneDebugger
reference https://www.gnu.org/software/global
while loop in shell file while_loop.sh ```bash #!/bin/bash
reference https://docs.yoctoproject.org/
RDP over ssh using reminna After ssh connection in terminal, connect to localhost:59002 in reminna run command in terminal 1 ssh -L 59002:localhost...
This is a post about aarch64 kernel debugging using qemu and gdb in yocto environment
tmux는 하나의 터미널 창에서 여러개의 터미널을 생성하여 사용할 수 있게 해주는 툴이다. tmux는 많은 옵션을 가지고 있는데, 그중 기본적인 사용방법을 아래에 정리하였다.
rust에서 숫자를 입력 받는 동작 하는 몇가지 방법 정리