Euler Conjecture and CDC 6600
7 days ago
- #compilation
- #timing
- #performance
- Compile-time computed data increases executable size and load time.
- Run-time allocation and filling of memory can be significantly faster (10^3 to 10^5 times).
- Executable size reflects declared arrays only if they are parameter arrays, initialized at compile time, or in common blocks.
- Compile-time computation requires computing all elements, which can be inefficient (e.g., 10^4 elements).
- Run-time computation can stop early (e.g., after 144 elements).
- Extra effort in computation should be charged appropriately (user time vs. system time).
- Programmers may optimize for wall time or CPU time depending on the environment.
- POSIX time command returns three time values to differentiate between elapsed, user, and system time.
- Timing results can vary between runs, especially for small code segments.