# kaleidoscope **Repository Path**: chenchang/kaleidoscope ## Basic Information - **Project Name**: kaleidoscope - **Description**: LLVM tutorial project - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2018-04-25 - **Last Updated**: 2024-11-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 安装 CLang 1. 从 http://releases.llvm.org 下载 `Clang for Windows (64-bit)` 2. 运行安装文件,将 `Clang` 安装到默认位置: `C:\Program Files\LLVM` # 获取 `LLVM` 源代码 1. 从 https://github.com/llvm-mirror/llvm 获取源代码,并克隆到 `${LLVM_SRC}` 目录 # 构建 `LLVM` 库及示例 1. 进入 `${LLVM_SRC}` 目录,执行以下命令: ``` cd ${LLVM_SRC} mkdir build cd build cmake .. -TLLVM-vs2014 -G"Visual Studio 14 2015 Win64" cd examples\Kaleidoscope MSBuild Kaleidoscope /p:Configuration=Debug /v:m /m ``` 1. 命令执行完成后,将在以下目录分别生成可执行程序及库: * ${LLVM_SRC}\build\Debug\bin * ${LLVM_SRC}\build\Debug\lib