# Compiler(スクリプトの制作及びコンパイル)

このCompilerインターフェースでは自由にGPCスクリプトを制作・エラー修正・コンパイルしてGPCに書き込みができます。またはダウンロードしたGPCプログラミングファイルをここで開いてコンパイルすることができます。コンパイル完了後COMPILER >>> Compileをクリックして、エラー修正およびGPCプログラミングファイルにコンパイルします。完了したらProgrammerインターフェースではこのGPCプログラミングファイルをクロノス・ゼンに書き込むことができます。

![](https://gblobscdn.gitbook.com/assets%2F-M4XDpPMxF6nBZHbUPPh%2F-M7uLjs05I7vVdeKKo_F%2F-M7uM1xRcxKLiBTv2C0o%2Fimage.png?alt=media\&token=f9d1be3f-3e1b-45e2-84f8-f66b420e096e)

Compilerインターフェース

## **Compiler Tab Bar(Compiler タブバー)** <a href="#compiler-tab-barcompiler-biao-qian-qu" id="compiler-tab-barcompiler-biao-qian-qu"></a>

![](https://gblobscdn.gitbook.com/assets%2F-LuPv_lMrFV1b9PLExvq%2F-M8QV4_652vRT1lPYv9z%2F-M8QXoxiYq-R8k6iC55H%2Fimage.png?alt=media\&token=e07e86b1-3c03-4a30-93ec-fb2f4ae17c52)

ここはCompilerにロードされるGPCスクリプトで、ロードされた順で配置されています。個別にタブーをクリックし、各GPCスクリプトをコンパイルすることができます。コンパイルされたスクリプトはタブーに(\*)記号が表示されます。これはコンパイルしたものの保存されていないという意味です。保存すると(\*)記号がなくなります。

## **Compiler Editor(**&#x30B3;ンパイラエディ&#x30BF;**)** <a href="#compiler-editorcompiler-bian-ji-qu" id="compiler-editorcompiler-bian-ji-qu"></a>

![](https://gblobscdn.gitbook.com/assets%2F-M4XDpPMxF6nBZHbUPPh%2F-MBJ-cpks_uPVsGVIyR6%2F-MBJ0IJIPBD4LjHK4Lmz%2Fimage.png?alt=media\&token=87595a5e-3f80-49ca-808d-998ed2a9b2c2)

ここはGPCスクリプトのコンパイラエディタです。スクリプトのコンパイルができます。

## **Compiler Output(**&#x30B3;ンパイラして出&#x529B;**)** <a href="#compiler-outputcompiler-shu-chu-xun-xi-qu" id="compiler-outputcompiler-shu-chu-xun-xi-qu"></a>

![](https://gblobscdn.gitbook.com/assets%2F-M4XDpPMxF6nBZHbUPPh%2F-MBJ-cpks_uPVsGVIyR6%2F-MBJ0Ot_oqDjcaYlW3Vg%2Fimage.png?alt=media\&token=35321736-61d4-4a44-81ab-247cac35aca5)

ここは警告メッセージ(WARNING)、エラーメッセージ(ERROR)、スクリプトの使用容量(Byte Size)、使用されている変数(variables)の数の宣言の合計など、コンパイラー（Compiler）の結果が表示されます。

### Font Size(フォントサイズ) <a href="#font-size-zi-ti-da-xiao" id="font-size-zi-ti-da-xiao"></a>

フォントサイズを設定する場合、**Compiler**👉**Font Size**をクリックすると設定できます。

### **Compile(コンパイル)** <a href="#compile-bian-yi" id="compile-bian-yi"></a>

作成したGPCスクリプトをCompile(コンパイル)する場合、**"Compile"** (又は**F7**)をクリックします。GPCスクリプトは必ずCompiler(コンパイル)してエラー(ERROR)がないことを確認してから、クロノス・ゼンに書き込むことができます。Compiler（コンパイル）をクリックして、下の出力メッセージバーでエラーメッセージを確認します。エラーがあるGPCスクリプトはProgrammerのメモリスロットに入れられません。

### **Build and Run(**&#x30B3;ンパイルして実&#x884C;**)** <a href="#build-and-run-bian-yi-tong-shi-zhi-hang-jiao-ben" id="build-and-run-bian-yi-tong-shi-zhi-hang-jiao-ben"></a>

コンパイラ（Compiler）が正しい事をと確認した後、設計者は直接&#x306B;**"Build and Run"** をクリック（又は**F5キー**を押す）すると、システムはスクリプトを一時的にクロノス・ゼンのRAMに書き込んで実行すると同時に、Device Monitorを開いてスクリプト実行のステータスを確認します。非常に時間の節約になり便利ですが、クロノス・ゼンとZenStudioの接続が切断された後、RAM内のスクリプトもクリアされます。

DEVICE（デバイス設定）では、「BuildandRun」をクリックした後にDEVICEMONITORを開くかどうかを設定できます。

🔎 **DEVICEとDevice Monitorの関連インフォーメーションは下記を参考ください**👉


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://jap.cronusmax.com.tw/software/untitled/compiler.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
