【サイト内の関連ページ】
【関連する外部ページ】
Python の公式ページ: https://www.python.org/
【サイト内の関連ページ】
Windows での Visual Studio Community 2022 のインストール: 別ページ »で説明している.なお,Visual Studio には,ビルドツール(Build Tools)が含まれている.
Windows での ビルドツール for Visual Studio 2022 (Build Tools for Visual Studio 2022) のインストール: 別ページ »で説明している.
【関連する外部ページ】
起動は,Windows のメニューで「Visual Studio 20..」の下の「x64 Native Tools コマンドプロンプト (x64 Native Tools Command Prompt)」を選ぶ.「x64」は,64ビット版の意味である.
「x64 Native Tools コマンドプロンプト (x64 Native Tools Command Prompt)」がないとき:
C++ ビルドツール (Build Tools) のインストールを行うことで, 「x64 Native Tools コマンドプロンプト (x64 Native Tools Command Prompt)」がインストールされる.その手順は,別ページ »で説明
python -m pip install pipx python -m pipx install gdbgui
ここではメモ帳 (notepad) を使っている.
Windows のコマンドプロンプトを開く. そして,次のように実行して,プログラムファイルを作る. そのファイル名は main.c としている.
c: cd %HOMEPATH% notepad main.c
#include <stdio.h> int main() { int x, y, z; x = 100; y = 200; z = x + y; printf("%d\n", z); return 0; }
結果として,「Hello,World!」「sizeof(size_t)=8」と表示されればOK.
del main.exe gcc -g -ggdb -c -o main.o main.c gcc -g -ggdb -o main.exe main.o objdump -S -d main.o
gdbgui main.exe