Skip to main content

Questions tagged [compile-time]

2 votes
2 answers
321 views

It's mostly all in the title. How do you report the runtime of a C++ program that has intensive calculations at compile-time? If I have a program that, when I use the bash time command on it, appears ...
HiddenToad's user avatar
2 votes
2 answers
657 views

On a C++ project I got an idea to mix some compile time macro with std::optional to do something like : #include <optional> struct Foobar { std::optional<int> foo; std::optional&...
f222's user avatar
  • 1,040
1 vote
1 answer
140 views

Currently reading Steve McConnell "Code complete". "General issues in using variables" chapter, "Binding time" section. He says about variable's binding time in such ...
CoderDesu's user avatar
  • 1,015
-3 votes
1 answer
410 views

Are there other general purpose programming languages besides Objective-C +ARC and Swift which target the llvm and use static compile time Automatic Reference Counting for memory management?
v217's user avatar
  • 95
23 votes
8 answers
6k views

I have a C header that is generated from a CSV file and a Python script. The C header mainly contains a list of #define constants. I want to be able to detect manual changes to this header during ...
9a3eedi's user avatar
  • 2,099
11 votes
1 answer
14k views

I ran into a situation where my build speeds have started to become large and have affected productivity. I had already minimized header dependencies before using forward declarations. Now I've ...
Krupip's user avatar
  • 1,347
2 votes
3 answers
5k views

Why do the compile times not vary significantly between different era CPUs, even though disk (NVMe vs. HDD) and CPU benchmarks vary significantly in performance? Why does disabling hyperthreading ...
casualcoder's user avatar
5 votes
0 answers
256 views

So compile-time annotation processing is as old as the annotations themselves in Java. Yet most of the useful libraries were developed with the runtime approach in mind – at least at first. Now, ...
Michal M's user avatar
  • 159
4 votes
3 answers
2k views

In java/android we can call code written in the c/c++ language for execution speed advantage. I have heard of Ahead Of Time compilation which (as far as i know) compiles the entire application to ...
pebble's user avatar
  • 151
0 votes
2 answers
668 views

According to compiler definition, the compiler is a program that translates a program written in a programming language P (source code) into a program written in a machine language M (machine code). ...
coding_ninza's user avatar
-1 votes
2 answers
703 views

In programming language theory semantics, semantic is the field concerned with the rigorous mathematical study of the meaning of programming languages. It does so by evaluating the meaning of ...
coding_ninza's user avatar
-2 votes
2 answers
4k views

I am experimenting with complex FSM frameworks. For one of the approaches I am considering I would like to have two types of function: plain function and special function. The exact meaning does not ...
zzz777's user avatar
  • 456
108 votes
5 answers
12k views

The following commentator writes: Microservices shift your organizational dysfunction from a compile time problem to a run time problem. This commentator expands on the issue saying: Feature not ...
hawkeye's user avatar
  • 4,849