<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Programming on Hangstuck</title><link>https://nagayasu-shinya.github.io/categories/programming/</link><description>Recent content in Programming on Hangstuck</description><image><title>Hangstuck</title><url>https://nagayasu-shinya.github.io/images/site-cover.png</url><link>https://nagayasu-shinya.github.io/images/site-cover.png</link></image><generator>Hugo</generator><language>ja-JP</language><copyright>2015-2026 NAGAYASU Shinya</copyright><lastBuildDate>Sat, 30 May 2026 13:42:39 +0900</lastBuildDate><atom:link href="https://nagayasu-shinya.github.io/categories/programming/index.xml" rel="self" type="application/rss+xml"/><item><title>C言語の列挙型の真面目な使い方</title><link>https://nagayasu-shinya.github.io/posts/c-enum-usage-guide/</link><pubDate>Wed, 03 Jun 2020 23:21:23 +0900</pubDate><guid>https://nagayasu-shinya.github.io/posts/c-enum-usage-guide/</guid><description>&lt;p&gt;C言語には列挙型 &lt;code&gt;enum&lt;/code&gt; というものがあります。かなり便利な機能なのですが効果的に使われていることは少ないように思います。
そこで列挙型を正しく使うとどのようなご利益があるかを説明します。&lt;/p&gt;</description></item><item><title>printf デバッグ（デバッグプリント）の書き方</title><link>https://nagayasu-shinya.github.io/posts/debug-printf-techniques/</link><pubDate>Wed, 23 Jan 2019 16:39:46 +0900</pubDate><guid>https://nagayasu-shinya.github.io/posts/debug-printf-techniques/</guid><description>&lt;p&gt;C言語でのデバッグプリントの効率的なやり方を説明します。&lt;/p&gt;</description></item><item><title>C言語の静的解析ツールを使ってみよう！｜Splint</title><link>https://nagayasu-shinya.github.io/posts/static-analysis-splint-c/</link><pubDate>Wed, 16 Jan 2019 07:00:03 +0900</pubDate><guid>https://nagayasu-shinya.github.io/posts/static-analysis-splint-c/</guid><description>&lt;p&gt;C/C++言語の静的解析ツール Splintの紹介です。&lt;/p&gt;</description></item><item><title>C言語で作成した実行可能ファイルのシンボル情報を削除｜情報漏洩を防ごう</title><link>https://nagayasu-shinya.github.io/posts/strip-symbol-information-binary/</link><pubDate>Tue, 04 Dec 2018 06:30:54 +0900</pubDate><guid>https://nagayasu-shinya.github.io/posts/strip-symbol-information-binary/</guid><description>&lt;p&gt;実行可能ファイルのシンボル情報を削除して情報漏えいのリスクを下げる方法を説明します。&lt;/p&gt;</description></item><item><title>C言語で2の累乗（2^n）への切り上げ＆切り捨て</title><link>https://nagayasu-shinya.github.io/posts/power-of-two-rounding/</link><pubDate>Mon, 11 Sep 2017 08:00:31 +0900</pubDate><guid>https://nagayasu-shinya.github.io/posts/power-of-two-rounding/</guid><description>&lt;p&gt;組み込みソフトではよくある２の累乗の値への切り上げについて例を交えて説明します。&lt;/p&gt;</description></item><item><title>C/C++でアライメントされた領域を確保する方法｜aligned_alloc, posix_memalign, alignas</title><link>https://nagayasu-shinya.github.io/posts/memory-aligned-allocation-posix/</link><pubDate>Thu, 13 Apr 2017 08:00:20 +0900</pubDate><guid>https://nagayasu-shinya.github.io/posts/memory-aligned-allocation-posix/</guid><description>&lt;p&gt;C/C++にて特定のサイズでアライメントされた領域を確保する方法を説明します。&lt;/p&gt;</description></item><item><title>超便利！C/C++他30種類のプログラムをその場で実行確認できるサイト｜Wandbox</title><link>https://nagayasu-shinya.github.io/posts/online-compiler-wandbox/</link><pubDate>Tue, 04 Apr 2017 08:00:36 +0900</pubDate><guid>https://nagayasu-shinya.github.io/posts/online-compiler-wandbox/</guid><description>&lt;p&gt;オンラインでさまざまな言語のコンパイル・実行ができる &lt;a href="https://wandbox.org"&gt;Wandbox&lt;/a&gt;という便利サイトの紹介です。&lt;/p&gt;</description></item><item><title>超便利！C言語のアセンブラ出力を即確認できるサイト｜compiler-explorer</title><link>https://nagayasu-shinya.github.io/posts/compiler-explorer-online/</link><pubDate>Thu, 16 Feb 2017 07:30:53 +0900</pubDate><guid>https://nagayasu-shinya.github.io/posts/compiler-explorer-online/</guid><description>&lt;p&gt;Compiler Explorerは、オンライン上でC/C++等のコードをコンパイルし、アセンブラ出力をリアルタイムで確認できる便利なサイトです。&lt;/p&gt;</description></item><item><title>C言語のコードをアセンブラ出力を確認しながら最適化する</title><link>https://nagayasu-shinya.github.io/posts/assembly-optimization-gcc/</link><pubDate>Tue, 07 Feb 2017 11:50:23 +0900</pubDate><guid>https://nagayasu-shinya.github.io/posts/assembly-optimization-gcc/</guid><description>&lt;p&gt;C言語のループ処理を3種類の書き方でアセンブラに変換し、どの書き方が効率の良い機械語を生成するか比較します。&lt;/p&gt;</description></item><item><title>c言語でプログレスバーを表示する｜ASCIIエスケープコード</title><link>https://nagayasu-shinya.github.io/posts/terminal-progress-bar/</link><pubDate>Mon, 23 Jan 2017 12:00:04 +0900</pubDate><guid>https://nagayasu-shinya.github.io/posts/terminal-progress-bar/</guid><description>&lt;p&gt;ユーザーの待ち時間に表示するようなプログレスバーをC言語で表示する方法を説明します。&lt;/p&gt;</description></item><item><title>c言語で待ち時間を示すスピナーの簡単な表示法｜キャリッジリターン</title><link>https://nagayasu-shinya.github.io/posts/terminal-spinner-animation/</link><pubDate>Thu, 19 Jan 2017 12:00:36 +0900</pubDate><guid>https://nagayasu-shinya.github.io/posts/terminal-spinner-animation/</guid><description>&lt;p&gt;C言語で、くるくる回るスピナーを表示するかんたんな方法を説明します。&lt;/p&gt;</description></item><item><title>組込みソフト向けC言語コーディング規約｜標準ライブラリ</title><link>https://nagayasu-shinya.github.io/posts/c-stdlib-safe-practices/</link><pubDate>Wed, 28 Dec 2016 12:00:18 +0900</pubDate><guid>https://nagayasu-shinya.github.io/posts/c-stdlib-safe-practices/</guid><description>&lt;p&gt;C言語規約シリーズです。今回は標準ライブラリについてです。&lt;/p&gt;</description></item><item><title>組込みソフト向けC言語コーディング規約｜ポインタ</title><link>https://nagayasu-shinya.github.io/posts/c-pointer-null-handling/</link><pubDate>Tue, 27 Dec 2016 12:00:58 +0900</pubDate><guid>https://nagayasu-shinya.github.io/posts/c-pointer-null-handling/</guid><description>&lt;p&gt;C言語規約シリーズです。今回はポインタの注意すべき点についてです。&lt;/p&gt;</description></item><item><title>組込みソフト向けC言語コーディング規約｜演算と式</title><link>https://nagayasu-shinya.github.io/posts/c-operator-best-practices/</link><pubDate>Mon, 26 Dec 2016 12:00:43 +0900</pubDate><guid>https://nagayasu-shinya.github.io/posts/c-operator-best-practices/</guid><description>&lt;p&gt;C言語規約シリーズです。今回は演算と式についてです。&lt;/p&gt;</description></item><item><title>組込みソフト向けC言語コーディング規約｜変数の定義と宣言</title><link>https://nagayasu-shinya.github.io/posts/c-variable-definition-declaration/</link><pubDate>Thu, 22 Dec 2016 12:00:21 +0900</pubDate><guid>https://nagayasu-shinya.github.io/posts/c-variable-definition-declaration/</guid><description>&lt;p&gt;C言語規約シリーズです。今回は変数の定義と宣言についてです。&lt;/p&gt;</description></item><item><title>組込みソフト向けC言語コーディング規約｜型の定義（構造体、列挙型、ビットフィールドなど）</title><link>https://nagayasu-shinya.github.io/posts/c-typedef-structuring-rules/</link><pubDate>Mon, 19 Dec 2016 12:00:39 +0900</pubDate><guid>https://nagayasu-shinya.github.io/posts/c-typedef-structuring-rules/</guid><description>&lt;p&gt;C言語規約シリーズです。今回は型の定義についてです。&lt;/p&gt;</description></item><item><title>組込みソフト向けC言語コーディング規約｜関数の定義と宣言</title><link>https://nagayasu-shinya.github.io/posts/c-function-definition-declaration/</link><pubDate>Wed, 14 Dec 2016 07:00:15 +0900</pubDate><guid>https://nagayasu-shinya.github.io/posts/c-function-definition-declaration/</guid><description>&lt;p&gt;C言語規約シリーズです。今回は関数の定義と宣言についてです。&lt;/p&gt;</description></item><item><title>組込みソフト向けC言語コーディング規約｜マクロとプリプロセッサ</title><link>https://nagayasu-shinya.github.io/posts/c-preprocessor-macros/</link><pubDate>Sat, 10 Dec 2016 04:20:45 +0900</pubDate><guid>https://nagayasu-shinya.github.io/posts/c-preprocessor-macros/</guid><description>&lt;p&gt;C言語規約シリーズです。今回はマクロとプリプロセッサについてです。&lt;/p&gt;</description></item><item><title>規格違反にならないC言語でのファイルサイズ取得 ｜POSIX fstat 関数使用</title><link>https://nagayasu-shinya.github.io/posts/c-file-size-posix-fstat/</link><pubDate>Thu, 01 Sep 2016 06:00:25 +0900</pubDate><guid>https://nagayasu-shinya.github.io/posts/c-file-size-posix-fstat/</guid><description>&lt;p&gt;C言語にはファイルサイズを取得する標準ライブラリ関数がありません。
いろいろな実装方法がありますがその１つを紹介します。&lt;/p&gt;</description></item></channel></rss>