# CMake to invoke cc1 and as directly

**URL:** https://discourse.cmake.org/t/cmake-to-invoke-cc1-and-as-directly/11071
**Category:** Code
**Tags:** os:windows
**Created:** [June 21, 2024, 11:01am UTC](https://discourse.cmake.org/t/cmake-to-invoke-cc1-and-as-directly/11071 "2024-06-21T11:01:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![chnarius](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/c/b4bc9f/32.png) [@chnarius](https://discourse.cmake.org/u/chnarius)
#### Post date: [June 21, 2024, 11:01am UTC](https://discourse.cmake.org/t/cmake-to-invoke-cc1-and-as-directly/11071/1 "2024-06-21T11:01:15Z")

</div>

hello Guys,

I am trying to write CMakeLists.txt to build an execute binary using cc1.exe, as.exe and ld.exe (there is no gcc.exe in the prebuilt toolchain 😂 😂). That means I need to do the compiling/assembly/linking step by step.

Could you please give help on this?

Thanks
