What the hell is a target triple?
mcyoung.xyz
What the hell is a target triple?
1–10 of 139 posts
Re: What the hell is a target triple?
#2Re: What the hell is a target triple?
#3- https://mcyoung.xyz/2021/06/01/linker-script/
Re: What the hell is a target triple?
#4I assume it works with an all-targets binutils build. I haven't seen anyone building their cross-compilers in this way (at least not in recent memory).
Re: What the hell is a target triple?
#5I actually do have working code for the triple-to-TargetInfo instantiation portion (which is fun because there's one or two cases that juuuust aren't quite like all of the others, and I'm not sure if that's a bad copy-paste job or actually intentional). But I never got around to working out how to actually integrate the actual bodies of TargetInfo implementations--which provide things like the properties of C/C++ fundamental types or default macros--into the TableGen easily, so that patch is still merely languishing somewhere on my computer.
Re: What the hell is a target triple?
#6Note to author, I'm not sure the word "anachronism" is being used correctly in the intro.
Re: What the hell is a target triple?
#7I think GCC's more-or-less equivalent to Clang's --target is called -B: https://gcc.gnu.org/onlinedocs/gcc/Directory-Options.html#in... I assume it works with an all-targets binutils build. I haven't seen anyone building their cross-compilers in this way (at least not in recent memory).
This is one of the biggest differences between clang and GCC: clang has one binary that supports multiple targets, while a GCC build is always target-specific.
Re: What the hell is a target triple?
#8I can't remember what the fifth one is, but yeah... insane system.
Thanks for writing this up! I wonder if anyone will ever come up with something more sensible.
Re: What the hell is a target triple?
#9Note to author, I'm not sure the word "anachronism" is being used correctly in the intro.
Re: What the hell is a target triple?
#10The author's blog is a FANTASTIC source of information. I recommend checking out some of their other posts: - https://mcyoung.xyz/2021/06/01/linker-script/ - https://mcyoung.xyz/2023/08/09/yarns/ - https://mcyoung.xyz/2023/08/01/llvm-ir/