2、実行方法 コマンドプロンプトにより、compiler.cをコンパイルする。 コンパイルによって作成された実行ファイル(自分が行った環境では'compiler.exe')を実行する。 その実行の際には、対象言語が入力されているテキストファイル(自分が行った環境では'siki_1.txt')を引数にとる。 実行が終了すると、'compiler_data.txt'というテキストファイルが出力される。 'compiler_data.txt'の中に、プログラムの実行結果が記述されている。 ※以下に、実際に自分の環境で実行したコマンドプロンプト画面を記述しておく。 ↓ここから ---------------------------------------------------------------------------- C:\Documents and Settings\i865gpen4\デスクトップ\提出レポ(3回後期)\コンパイ ラ動作試験>bcc32 compiler.c Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland compiler.c: Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland C:\Documents and Settings\i865gpen4\デスクトップ\提出レポ(3回後期)\コンパイ ラ動作試験>dir C:\Documents and Settings\i865gpen4\デスクトップ\提出レポ(3回後期)\コンパ イラ動作試験 のディレクトリ 2006/01/29 01:26 . 2006/01/29 01:26 .. 2006/01/29 01:19 13,890 compiler.c 2006/01/29 01:26 62,976 compiler.exe 2006/01/29 01:26 9,329 compiler.obj 2006/01/29 01:26 393,216 compiler.tds 2006/01/28 23:32 39 siki_1.txt 2006/01/28 23:41 27 siki_2.txt 2006/01/29 00:10 126 siki_3.txt 7 個のファイル 479,603 バイト 2 個のディレクトリ 29,980,884,992 バイトの空き領域 C:\Documents and Settings\i865gpen4\デスクトップ\提出レポ(3回後期)\コンパイ ラ動作試験>compiler siki_1.txt It succeeded in making 'compiler_data.txt'. C:\Documents and Settings\i865gpen4\デスクトップ\提出レポ(3回後期)\コンパイ ラ動作試験>dir C:\Documents and Settings\i865gpen4\デスクトップ\提出レポ(3回後期)\コンパ イラ動作試験 のディレクトリ 2006/01/29 01:27 . 2006/01/29 01:27 .. 2006/01/29 01:19 13,890 compiler.c 2006/01/29 01:26 62,976 compiler.exe 2006/01/29 01:26 9,329 compiler.obj 2006/01/29 01:26 393,216 compiler.tds 2006/01/29 01:27 986 compiler_data.txt 2006/01/28 23:32 39 siki_1.txt 2006/01/28 23:41 27 siki_2.txt 2006/01/29 00:10 126 siki_3.txt 8 個のファイル 480,589 バイト 2 個のディレクトリ 29,980,880,896 バイトの空き領域 ---------------------------------------------------------------------------- ↑ここまで