[LLVMdev] [cfe-dev] [PATCH] triples for baremetal

Renato Golin renato.golin at linaro.org
Tue Jun 24 13:54:52 PDT 2014


On 24 June 2014 19:57, Jonathan Roelofs <jonathan at codesourcery.com> wrote:
> Well, depends on what you mean by 'work', and also what is meant by that
> triple. To me, it means:
>
>     ArchType: arm
>     VendorType: CodeSourcery
>     OSType: UnknownOS (not bare-metal)
>     EnvironmentType: UnknownEnvironment
>     ObjectFormatType: elf

Isn't that funny that, when we want to come up with a reasonable and
logical "triple", it actually has 5 fields? :)

That's why Clang and LLVM are desperately trying to move away from
triples, into separate flags. But if you separate the default from the
triple handling, we can re-use the default for the separate arguments
in the same way we use for legacy triples.


> Does that make sense?

It does when we control the environment. On legacy systems, not even
the user does. :(

--renato



More information about the llvm-dev mailing list