Project

    [RustShell] thread 'main' panicked at 'there is no reactor running, must be called from the context of a Tokio 1.x runtime'

    What happened? Rust를 이용한 Shell 만들기 프로젝트를 진행하고 있었다. p2p를 사용한 built-in 채팅 명령어를 시험 삼아 만들고 돌리려는데 다음과 같은 에러가 떴다. thread 'main' panicked at 'there is no reactor running, must be called from the context of a Tokio 1.x runtime', /home/karatus/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.17.0/src/runtime/context.rs:29:26 tokio 크레이트의 1.x 버전 런타임 컨텍스트로 부르지 않아 생긴 일이다. How to solve? 1) Did you chec..

    [C Lab] How-To inline assembly & test

    Linux Kernel에 존재하는 시스템 콜을 직접 구현해보면서 inline assembly 문법에 대해 궁금해져 쓰는 글이다. 레퍼런스는 이 글의 제일 아래에 명시해놓았다. How-To inline assembly Why we use the inline assembly? 이유는 몇 가지가 있다. 1) 시스템 성능 최적화에 제격이라 2) 어셈블리어로 작업할게 필요한데 그때마다 서브루틴의 프롤로그와 에필로그의 작성이 번거로울 때 이외에도 있을 텐데 내가 아는 선에서는 그렇다. Grammar __asm__ __volatile__ (asms : output : input : clobber ); __asm__ : asm으로도 쓸 수 있지만, ansi 옵션일 때는 asm이 정의되지 않기 때문에 되도록이면 __as..