> For the complete documentation index, see [llms.txt](https://koshizuow.gitbook.io/compilerbook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://koshizuow.gitbook.io/compilerbook/separate_compile_linking/step8/split_files.md).

# 分割檔案

請照本章最前面所述的方式來進行檔案分割。9cc.h 為標頭檔案。依照程式組成方式的不同，1個 .c 檔可能會對應有一個 .h 檔，但是多餘的宣告並不算有害，這裡我們不用管理相依性到那麼細沒關係。準備 9cc.h 這個檔案，在所有的C程式檔都用`#include "9cc.h"`將其引入吧。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://koshizuow.gitbook.io/compilerbook/separate_compile_linking/step8/split_files.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.
