Hi @haruhi / @comaniac,
[quote="comaniac, post:4, topic:11519, full:true"] TVM does have a C-like codegen, but it generates OpenCL code for non-NVIDIA GPUs. [/quote] The C code generation is also used in microTVM. [Our demo applications for the microNPU](https://github.com/apache/tvm/tree/main/apps/microtvm/ethosu) is a good example for this, it uses the host toolchain to compile the C output from TVM and that makes it easier to align the compilation flags as well as some features (such as the Ahead-of-Time Executor) only existing for the C output right now. Also, if you want to add a new backend to TVM, I'd suggest looking at [Target Hooks](https://github.com/apache/tvm-rfcs/blob/main/rfcs/0010-target-registered-compiler-flow-customisation.md) which can use more of the existing TVM code generation infrastructure - there's an [example Target you can use for reference](https://github.com/apache/tvm/tree/main/src/relay/backend/contrib/example_target_hooks). --- [Visit Topic](https://discuss.tvm.apache.org/t/if-target-c-how-to-execute-the-c-program/11519/9) to respond. You are receiving this because you enabled mailing list mode. To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/52a14044a376ac97ec4c91e87c96d7025c5a5dadbc959483369274ddb523f349).