# LLVM Clang

## Clang

### 重要参数

* `-E` 只运行预编译阶段，约定后缀名为 `.i`；
* `-S` 只运行预编译 -> 编译阶段，约定后缀名为 `.s`；
* `-c` 只运行预编译 -> 编译 -> 汇编阶段，约定后缀名为 `.o`、`.obj`；
* `-o <file>` 写入输出至文件 `<file>` 中；
* `-g` 生成源码级别的 debug 信息；
* `-D <macro>=<value>` 定义宏 `<macro>` 为 `<value>`；
* `-U <macro>` 取消定义宏 `<macro>`。

## LLDB

### core 文件

`ulimit -c 1024` 允许程序在崩溃时生成 core 文件。


---

# 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://gitbook.fantasticmao.cn/tech/c-and-unix/c/llvm-clang.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.
