# Implementation of Comptime

**URL:** <https://ziggit.dev/t/implementation-of-comptime/5041>\
**Category:** Explain\
**Created:** [July 8, 2024, 6:33pm UTC](https://ziggit.dev/t/implementation-of-comptime/5041 "2024-07-08T18:33:24Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![mnemnion](https://ziggit.dev/user_avatar/ziggit.dev/mnemnion/32/2478_2.png) [@mnemnion](https://ziggit.dev/u/mnemnion)\
**Post date:** [July 10, 2024, 4:13pm UTC](https://ziggit.dev/t/implementation-of-comptime/5041/5 "2024-07-10T16:13:44Z")

</div>

> [@mlugg](#):
>
> So, comptime is kind of just converting ZIR to… values? This is also linked to the difference between ZIR and AIR: ZIR is pre-comptime, whereas AIR is post-comptime.

Ok, thank you, that’s approximately what I meant: comptime-produced values live in the intern pool or for things like functions consist of ZIR (or AIR directly?) and when Sema is done, everything is AIR. Right?

So my next question is: this means that comptime can’t and doesn’t execute object code, right? Calling a function from comptime means that the compiler has to have access to the source of that function.

---

_[View the full topic](https://ziggit.dev/t/implementation-of-comptime/5041)._
