[cfe-dev] First shot at Bug 4127 - The clang driver should support cross compilation

Konstantin Tokarev annulen at yandex.ru
Tue Jan 10 03:33:40 PST 2012

10.01.2012, 14:41, "David Chisnall" <theraven at sucs.org>:
> On 10 Jan 2012, at 10:00, James Molloy wrote:
>>   * This can take two forms - hard-baked and JSON. The hard-baked version I see being a tablegen file similar (as possible) to the JSON representation, which is compiled into Clang for speed.
> Is there any reason why you can't create a tool that parses the JSON and emits a C++ class so that it can be exactly the same for the cases that don't require any custom executable logic?  This would make prototyping new platforms a lot easier, since it would mean that you'd just poke the JSON until it worked and then add it to the list of JSON files to be transformed into C++ in the default build when it was ready (and people shipping clang for their obscure platform could just add it as part of their default build, even if it were of no interest to anyone else).

What about custom cross-toolchain setups? They would require recompilation?


More information about the cfe-dev mailing list