# Contribution: cross-compilation support for XMOS processors.

**URL:** https://discourse.cmake.org/t/contribution-cross-compilation-support-for-xmos-processors/3867
**Category:** Development
**Created:** [August 3, 2021, 9:00am UTC](https://discourse.cmake.org/t/contribution-cross-compilation-support-for-xmos-processors/3867 "2021-08-03T09:00:05Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![DaveAtkinsonXMOS](https://discourse.cmake.org/user_avatar/discourse.cmake.org/daveatkinsonxmos/32/1679_2.png) [@DaveAtkinsonXMOS](https://discourse.cmake.org/u/DaveAtkinsonXMOS)
#### Post date: [August 4, 2021, 2:57pm UTC](https://discourse.cmake.org/t/contribution-cross-compilation-support-for-xmos-processors/3867/7 "2021-08-04T14:57:24Z")

</div>

I’ve done the same thing for a ‘project’ ‘written’ in assembly language. Again, it just kinda works, with the caveat that the output messages are less then perfect:

```auto
$ CMAKE_TOOLCHAIN_FILE=../xmos_cmake_toolchain/xmos_toolchain.cmake cmake -B build && cmake --build build
-- The ASM compiler identification is unknown
-- Found assembler: /usr/local/bin/XMOS/XTC/15.1.0/bin/xcc
System is unknown to cmake, create:
Platform/XMOS to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
-- Warning: Did not find file Compiler/-ASM
-- Configuring done
-- Generating done
-- Build files have been written to: /home/davea/sandboxes/xmos_cmake_asm_example/build
Scanning dependencies of target example
[33%] Building ASM object CMakeFiles/example.dir/src/main.S.obj
[66%] Building ASM object CMakeFiles/example.dir/src/func.s.obj
[100%] Linking ASM executable example
[100%] Built target example
$

```

Code at  
[git@gitlab.kitware.com](mailto:git@gitlab.kitware.com):DaveAtkinsonXMOS/xmos\_cmake\_xc\_example.git

---

_[View the full topic](https://discourse.cmake.org/t/contribution-cross-compilation-support-for-xmos-processors/3867)._
