3 ms·
Virgil [1] has had compile-time initialization since 2006. There is no restriction on the code that can be run at compile-time. It needs no specific designation
by titzer 4y ago
Virgil [1] has had compile-time initialization since 2006. There is no restriction on the code that can be run at compile-time. It needs no specific designation--it is simply the initializers of components (globals) and their variables. The entire reachable heap is optimized together with the program to produce a binary.
[1] https://dl.acm.org/doi/10.1145/1167515.1167489 https://dl.acm.org/doi/10.1145/1167515.1167489