C言語のソースファイルをコンパイルする際に行われるプリプロセスですが、gccのオプションを利用することで実行結果をを確認できるようなので試してみます。
ソースファイル
今回はC言語で「Hello World」を表示するだけの定番のコードを用意しました。
#include <stdio.h> int main(void) { printf("Hello World\n"); return 0; }
プリプロセス
プリプロセスの内容を表示するには、gccの-Eオプションを利用します。
$ gcc -E source.c > res.txt
実行結果が長いですがそのまま載せておきます。
# 1 "source.c" # 1 "<built-in>" # 1 "<command-line>" # 1 "source.c" # 1 "c:\\mingw\\include\\stdio.h" 1 3 # 38 "c:\\mingw\\include\\stdio.h" 3 # 39 "c:\\mingw\\include\\stdio.h" 3 # 56 "c:\\mingw\\include\\stdio.h" 3 # 1 "c:\\mingw\\include\\_mingw.h" 1 3 # 55 "c:\\mingw\\include\\_mingw.h" 3 # 56 "c:\\mingw\\include\\_mingw.h" 3 # 66 "c:\\mingw\\include\\_mingw.h" 3 # 1 "c:\\mingw\\include\\msvcrtver.h" 1 3 # 35 "c:\\mingw\\include\\msvcrtver.h" 3 # 36 "c:\\mingw\\include\\msvcrtver.h" 3 # 67 "c:\\mingw\\include\\_mingw.h" 2 3 # 1 "c:\\mingw\\include\\w32api.h" 1 3 # 35 "c:\\mingw\\include\\w32api.h" 3 # 36 "c:\\mingw\\include\\w32api.h" 3 # 59 "c:\\mingw\\include\\w32api.h" 3 # 1 "c:\\mingw\\include\\sdkddkver.h" 1 3 # 35 "c:\\mingw\\include\\sdkddkver.h" 3 # 36 "c:\\mingw\\include\\sdkddkver.h" 3 # 60 "c:\\mingw\\include\\w32api.h" 2 3 # 74 "c:\\mingw\\include\\_mingw.h" 2 3 # 57 "c:\\mingw\\include\\stdio.h" 2 3 # 69 "c:\\mingw\\include\\stdio.h" 3 # 1 "c:\\mingw\\lib\\gcc\\mingw32\\5.3.0\\include\\stddef.h" 1 3 4 # 216 "c:\\mingw\\lib\\gcc\\mingw32\\5.3.0\\include\\stddef.h" 3 4 # 216 "c:\\mingw\\lib\\gcc\\mingw32\\5.3.0\\include\\stddef.h" 3 4 typedef unsigned int size_t; # 328 "c:\\mingw\\lib\\gcc\\mingw32\\5.3.0\\include\\stddef.h" 3 4 typedef short unsigned int wchar_t; # 357 "c:\\mingw\\lib\\gcc\\mingw32\\5.3.0\\include\\stddef.h" 3 4 typedef short unsigned int wint_t; # 70 "c:\\mingw\\include\\stdio.h" 2 3 # 94 "c:\\mingw\\include\\stdio.h" 3 # 1 "c:\\mingw\\include\\sys/types.h" 1 3 # 34 "c:\\mingw\\include\\sys/types.h" 3 # 35 "c:\\mingw\\include\\sys/types.h" 3 # 62 "c:\\mingw\\include\\sys/types.h" 3 typedef long __off32_t; typedef __off32_t _off_t; typedef _off_t off_t; # 91 "c:\\mingw\\include\\sys/types.h" 3 typedef long long __off64_t; typedef __off64_t off64_t; # 115 "c:\\mingw\\include\\sys/types.h" 3 typedef int _ssize_t; typedef _ssize_t ssize_t; # 95 "c:\\mingw\\include\\stdio.h" 2 3 # 1 "c:\\mingw\\lib\\gcc\\mingw32\\5.3.0\\include\\stdarg.h" 1 3 4 # 40 "c:\\mingw\\lib\\gcc\\mingw32\\5.3.0\\include\\stdarg.h" 3 4 typedef __builtin_va_list __gnuc_va_list; # 103 "c:\\mingw\\include\\stdio.h" 2 3 # 210 "c:\\mingw\\include\\stdio.h" 3 typedef struct _iobuf { char *_ptr; int _cnt; char *_base; int _flag; int _file; int _charbuf; int _bufsiz; char *_tmpfname; } FILE; # 239 "c:\\mingw\\include\\stdio.h" 3 extern __attribute__((__dllimport__)) FILE _iob[]; # 252 "c:\\mingw\\include\\stdio.h" 3 __attribute__((__cdecl__)) __attribute__((__nothrow__)) FILE * fopen (const char *, const char *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) FILE * freopen (const char *, const char *, FILE *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int fflush (FILE *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int fclose (FILE *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int remove (const char *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int rename (const char *, const char *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) FILE * tmpfile (void); __attribute__((__cdecl__)) __attribute__((__nothrow__)) char * tmpnam (char *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) char *_tempnam (const char *, const char *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int _rmtmp (void); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int _unlink (const char *); # 289 "c:\\mingw\\include\\stdio.h" 3 __attribute__((__cdecl__)) __attribute__((__nothrow__)) char * tempnam (const char *, const char *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int rmtmp (void); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int unlink (const char *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int setvbuf (FILE *, char *, int, size_t); __attribute__((__cdecl__)) __attribute__((__nothrow__)) void setbuf (FILE *, char *); # 306 "c:\\mingw\\include\\stdio.h" 3 extern int __attribute__((__cdecl__)) __attribute__((__nothrow__)) __mingw_fprintf(FILE*, const char*, ...); extern int __attribute__((__cdecl__)) __attribute__((__nothrow__)) __mingw_printf(const char*, ...); extern int __attribute__((__cdecl__)) __attribute__((__nothrow__)) __mingw_sprintf(char*, const char*, ...); extern int __attribute__((__cdecl__)) __attribute__((__nothrow__)) __mingw_snprintf(char*, size_t, const char*, ...); extern int __attribute__((__cdecl__)) __attribute__((__nothrow__)) __mingw_vfprintf(FILE*, const char*, __builtin_va_list); extern int __attribute__((__cdecl__)) __attribute__((__nothrow__)) __mingw_vprintf(const char*, __builtin_va_list); extern int __attribute__((__cdecl__)) __attribute__((__nothrow__)) __mingw_vsprintf(char*, const char*, __builtin_va_list); extern int __attribute__((__cdecl__)) __attribute__((__nothrow__)) __mingw_vsnprintf(char*, size_t, const char*, __builtin_va_list); # 340 "c:\\mingw\\include\\stdio.h" 3 extern unsigned int _mingw_output_format_control( unsigned int, unsigned int ); # 433 "c:\\mingw\\include\\stdio.h" 3 __attribute__((__cdecl__)) __attribute__((__nothrow__)) int fprintf (FILE *, const char *, ...); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int printf (const char *, ...); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int sprintf (char *, const char *, ...); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int vfprintf (FILE *, const char *, __builtin_va_list); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int vprintf (const char *, __builtin_va_list); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int vsprintf (char *, const char *, __builtin_va_list); # 447 "c:\\mingw\\include\\stdio.h" 3 int __attribute__((__cdecl__)) __attribute__((__nothrow__)) __msvcrt_fprintf(FILE *, const char *, ...); int __attribute__((__cdecl__)) __attribute__((__nothrow__)) __msvcrt_printf(const char *, ...); int __attribute__((__cdecl__)) __attribute__((__nothrow__)) __msvcrt_sprintf(char *, const char *, ...); int __attribute__((__cdecl__)) __attribute__((__nothrow__)) __msvcrt_vfprintf(FILE *, const char *, __builtin_va_list); int __attribute__((__cdecl__)) __attribute__((__nothrow__)) __msvcrt_vprintf(const char *, __builtin_va_list); int __attribute__((__cdecl__)) __attribute__((__nothrow__)) __msvcrt_vsprintf(char *, const char *, __builtin_va_list); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int _snprintf (char *, size_t, const char *, ...); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int _vsnprintf (char *, size_t, const char *, __builtin_va_list); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int _vscprintf (const char *, __builtin_va_list); # 469 "c:\\mingw\\include\\stdio.h" 3 __attribute__((__cdecl__)) __attribute__((__nothrow__)) int snprintf (char *, size_t, const char *, ...); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int vsnprintf (char *, size_t, const char *, __builtin_va_list); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int vscanf (const char * __restrict__, __builtin_va_list); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int vfscanf (FILE * __restrict__, const char * __restrict__, __builtin_va_list); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int vsscanf (const char * __restrict__, const char * __restrict__, __builtin_va_list); # 610 "c:\\mingw\\include\\stdio.h" 3 __attribute__((__cdecl__)) __attribute__((__nothrow__)) ssize_t getdelim (char ** __restrict__, size_t * __restrict__, int, FILE * __restrict__); __attribute__((__cdecl__)) __attribute__((__nothrow__)) ssize_t getline (char ** __restrict__, size_t * __restrict__, FILE * __restrict__); # 630 "c:\\mingw\\include\\stdio.h" 3 __attribute__((__cdecl__)) __attribute__((__nothrow__)) int fscanf (FILE *, const char *, ...); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int scanf (const char *, ...); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int sscanf (const char *, const char *, ...); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int fgetc (FILE *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) char * fgets (char *, int, FILE *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int fputc (int, FILE *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int fputs (const char *, FILE *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) char * gets (char *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int puts (const char *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int ungetc (int, FILE *); # 651 "c:\\mingw\\include\\stdio.h" 3 __attribute__((__cdecl__)) __attribute__((__nothrow__)) int _filbuf (FILE *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int _flsbuf (int, FILE *); extern inline __attribute__((__gnu_inline__)) __attribute__((__cdecl__)) __attribute__((__nothrow__)) int getc (FILE *); extern inline __attribute__((__gnu_inline__)) __attribute__((__cdecl__)) __attribute__((__nothrow__)) int getc (FILE * __F) { return (--__F->_cnt >= 0) ? (int) (unsigned char) *__F->_ptr++ : _filbuf (__F); } extern inline __attribute__((__gnu_inline__)) __attribute__((__cdecl__)) __attribute__((__nothrow__)) int putc (int, FILE *); extern inline __attribute__((__gnu_inline__)) __attribute__((__cdecl__)) __attribute__((__nothrow__)) int putc (int __c, FILE * __F) { return (--__F->_cnt >= 0) ? (int) (unsigned char) (*__F->_ptr++ = (char)__c) : _flsbuf (__c, __F); } extern inline __attribute__((__gnu_inline__)) __attribute__((__cdecl__)) __attribute__((__nothrow__)) int getchar (void); extern inline __attribute__((__gnu_inline__)) __attribute__((__cdecl__)) __attribute__((__nothrow__)) int getchar (void) { return (--(&_iob[0])->_cnt >= 0) ? (int) (unsigned char) *(&_iob[0])->_ptr++ : _filbuf ((&_iob[0])); } extern inline __attribute__((__gnu_inline__)) __attribute__((__cdecl__)) __attribute__((__nothrow__)) int putchar(int); extern inline __attribute__((__gnu_inline__)) __attribute__((__cdecl__)) __attribute__((__nothrow__)) int putchar(int __c) { return (--(&_iob[1])->_cnt >= 0) ? (int) (unsigned char) (*(&_iob[1])->_ptr++ = (char)__c) : _flsbuf (__c, (&_iob[1]));} # 698 "c:\\mingw\\include\\stdio.h" 3 __attribute__((__cdecl__)) __attribute__((__nothrow__)) size_t fread (void *, size_t, size_t, FILE *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) size_t fwrite (const void *, size_t, size_t, FILE *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int fseek (FILE *, long, int); __attribute__((__cdecl__)) __attribute__((__nothrow__)) long ftell (FILE *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) void rewind (FILE *); # 751 "c:\\mingw\\include\\stdio.h" 3 typedef long long fpos_t; __attribute__((__cdecl__)) __attribute__((__nothrow__)) int fgetpos (FILE *, fpos_t *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int fsetpos (FILE *, const fpos_t *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int feof (FILE *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int ferror (FILE *); # 772 "c:\\mingw\\include\\stdio.h" 3 __attribute__((__cdecl__)) __attribute__((__nothrow__)) void clearerr (FILE *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) void perror (const char *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) FILE * _popen (const char *, const char *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int _pclose (FILE *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) FILE * popen (const char *, const char *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int pclose (FILE *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int _flushall (void); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int _fgetchar (void); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int _fputchar (int); __attribute__((__cdecl__)) __attribute__((__nothrow__)) FILE * _fdopen (int, const char *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int _fileno (FILE *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int _fcloseall (void); __attribute__((__cdecl__)) __attribute__((__nothrow__)) FILE * _fsopen (const char *, const char *, int); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int _getmaxstdio (void); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int _setmaxstdio (int); # 823 "c:\\mingw\\include\\stdio.h" 3 unsigned int __attribute__((__cdecl__)) __mingw_get_output_format (void); unsigned int __attribute__((__cdecl__)) __mingw_set_output_format (unsigned int); int __attribute__((__cdecl__)) __mingw_get_printf_count_output (void); int __attribute__((__cdecl__)) __mingw_set_printf_count_output (int); # 849 "c:\\mingw\\include\\stdio.h" 3 extern inline __attribute__((__gnu_inline__)) __attribute__((__always_inline__)) unsigned int __attribute__((__cdecl__)) _get_output_format (void) { return __mingw_get_output_format (); } extern inline __attribute__((__gnu_inline__)) __attribute__((__always_inline__)) unsigned int __attribute__((__cdecl__)) _set_output_format (unsigned int __style) { return __mingw_set_output_format (__style); } # 874 "c:\\mingw\\include\\stdio.h" 3 extern inline __attribute__((__gnu_inline__)) __attribute__((__always_inline__)) int __attribute__((__cdecl__)) _get_printf_count_output (void) { return 0 ? 1 : __mingw_get_printf_count_output (); } extern inline __attribute__((__gnu_inline__)) __attribute__((__always_inline__)) int __attribute__((__cdecl__)) _set_printf_count_output (int __mode) { return 0 ? 1 : __mingw_set_printf_count_output (__mode); } __attribute__((__cdecl__)) __attribute__((__nothrow__)) int fgetchar (void); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int fputchar (int); __attribute__((__cdecl__)) __attribute__((__nothrow__)) FILE * fdopen (int, const char *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int fileno (FILE *); # 894 "c:\\mingw\\include\\stdio.h" 3 extern inline __attribute__((__gnu_inline__)) __attribute__((__always_inline__)) FILE * __attribute__((__cdecl__)) __attribute__((__nothrow__)) fopen64 (const char *, const char *); extern inline __attribute__((__gnu_inline__)) __attribute__((__always_inline__)) FILE * __attribute__((__cdecl__)) __attribute__((__nothrow__)) fopen64 (const char * filename, const char * mode) { return fopen (filename, mode); } int __attribute__((__cdecl__)) __attribute__((__nothrow__)) fseeko64 (FILE *, __off64_t, int); extern inline __attribute__((__gnu_inline__)) __attribute__((__always_inline__)) __off64_t __attribute__((__cdecl__)) __attribute__((__nothrow__)) ftello64 (FILE *); extern inline __attribute__((__gnu_inline__)) __attribute__((__always_inline__)) __off64_t __attribute__((__cdecl__)) __attribute__((__nothrow__)) ftello64 (FILE * stream) { fpos_t __pos; return (fgetpos(stream, &__pos)) ? -1LL : (__off64_t)(__pos); } # 922 "c:\\mingw\\include\\stdio.h" 3 __attribute__((__cdecl__)) __attribute__((__nothrow__)) int fwprintf (FILE *, const wchar_t *, ...); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int wprintf (const wchar_t *, ...); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int vfwprintf (FILE *, const wchar_t *, __builtin_va_list); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int vwprintf (const wchar_t *, __builtin_va_list); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int _snwprintf (wchar_t *, size_t, const wchar_t *, ...); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int _vscwprintf (const wchar_t *, __builtin_va_list); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int _vsnwprintf (wchar_t *, size_t, const wchar_t *, __builtin_va_list); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int fwscanf (FILE *, const wchar_t *, ...); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int wscanf (const wchar_t *, ...); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int swscanf (const wchar_t *, const wchar_t *, ...); __attribute__((__cdecl__)) __attribute__((__nothrow__)) wint_t fgetwc (FILE *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) wint_t fputwc (wchar_t, FILE *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) wint_t ungetwc (wchar_t, FILE *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int swprintf (wchar_t *, const wchar_t *, ...); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int vswprintf (wchar_t *, const wchar_t *, __builtin_va_list); __attribute__((__cdecl__)) __attribute__((__nothrow__)) wchar_t * fgetws (wchar_t *, int, FILE *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int fputws (const wchar_t *, FILE *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) wint_t getwc (FILE *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) wint_t getwchar (void); __attribute__((__cdecl__)) __attribute__((__nothrow__)) wint_t putwc (wint_t, FILE *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) wint_t putwchar (wint_t); __attribute__((__cdecl__)) __attribute__((__nothrow__)) wchar_t * _getws (wchar_t *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int _putws (const wchar_t *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) FILE * _wfdopen(int, const wchar_t *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) FILE * _wfopen (const wchar_t *, const wchar_t *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) FILE * _wfreopen (const wchar_t *, const wchar_t *, FILE *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) FILE * _wfsopen (const wchar_t *, const wchar_t *, int); __attribute__((__cdecl__)) __attribute__((__nothrow__)) wchar_t * _wtmpnam (wchar_t *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) wchar_t * _wtempnam (const wchar_t *, const wchar_t *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int _wrename (const wchar_t *, const wchar_t *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int _wremove (const wchar_t *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) void _wperror (const wchar_t *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) FILE * _wpopen (const wchar_t *, const wchar_t *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int snwprintf (wchar_t *, size_t, const wchar_t *, ...); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int vsnwprintf (wchar_t *, size_t, const wchar_t *, __builtin_va_list); # 980 "c:\\mingw\\include\\stdio.h" 3 __attribute__((__cdecl__)) __attribute__((__nothrow__)) int vwscanf (const wchar_t *__restrict__, __builtin_va_list); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int vfwscanf (FILE *__restrict__, const wchar_t *__restrict__, __builtin_va_list); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int vswscanf (const wchar_t *__restrict__, const wchar_t * __restrict__, __builtin_va_list); __attribute__((__cdecl__)) __attribute__((__nothrow__)) FILE * wpopen (const wchar_t *, const wchar_t *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) wint_t _fgetwchar (void); __attribute__((__cdecl__)) __attribute__((__nothrow__)) wint_t _fputwchar (wint_t); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int _getw (FILE *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int _putw (int, FILE *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) wint_t fgetwchar (void); __attribute__((__cdecl__)) __attribute__((__nothrow__)) wint_t fputwchar (wint_t); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int getw (FILE *); __attribute__((__cdecl__)) __attribute__((__nothrow__)) int putw (int, FILE *); # 2 "source.c" 2 # 3 "source.c" int main(void) { printf("Hello World\n"); return 0; }
さっと目を通しただけでも、stdio.hはもちろん、mingw.h, msvcrtver.h, w32api.h, sdkddkver.h, stddef.をはじめとした様々なヘッダファイルを読み込んで、関数の宣言やtypedef宣言をしているようです。
ヘッダファイルはMinGWインストール時に作成されたMinGW/includeディレクトリのを利用していますね。
includeディレクトリ直下のヘッダファイルだけでも300近くインストールされているようです。
簡単なプログラムではありましたが、プリプロセスの実行結果を確認することができました。
もう少しC言語についての理解を深めたあとに、また確認してみたいと思います。
参考文献
この記事を読んだ人はこんな記事も読んでいます。
【C言語】コンパイル時のプリプロセスの処理内容を確認する