2 ms·
> The compiler could even include into the binary the flags used to modify the compiler behavior. There may be multiple sets of compiler flags and even multipl
by Someone 3y ago
> The compiler could even include into the binary the flags used to modify the compiler behavior.
There may be multiple sets of compiler flags and even multiple compilers (can there even be multiple linkers?)
In addition, having to pick between multiple functions called foo, a linker may pick either of them, and may not always pick the same one (parallel linkers often aren’t deterministic), even if their implementations are different.
There also is a decent chance you’ll have to document your OS, for example if the compiler dynamically links to a system library, or if the OS has FPU support in software, or if the OS tweaks some obscure CPU flags (and of course, you’ll have to document the specific CPU and CPU revision, as those can affect things like constant folding.