I collect practical systems-programming concepts and clarifications here, including target triples, legacy-software friction, Git terminology, and LLVM code generation.
I think most systems-level programmers must have a good grasp of target triples eventually.
I fumbled my way through understanding this over the past many years, referring to target triples.
I recommend https://t.co/VifiDUkJSJ as an excellent primer (and then some); this resource is a great starting point for target triples.
I sarcastically asked, “How hard could copying tab characters be, you say?” and called the linked situation, “This is the reality of legacy software.”
I linked https://t.co/2WUQ9YeD4S and https://t.co/WqojONrG29 while commenting on legacy software.
I've gotten this wrong every time when using base/compare terminology, despite at least 10 years or more of doing so.
I acknowledged that the terminology is technically correct and appreciated the link that has always existed to correct my mistake.
I wondered whether “old” vs “new” would be better names than “base” and “compare.”
I said, “Sorry the terminology was bad,” and clarified: this is LLVM doing codegen on a set of IR files plus linking.
The IR files are “plain old IR files that Clang produces,” and Zig can be ignored in this explanation.
Related: system design and performance, zig comptime and conditionals, api docs and integration