<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="+1">I have some broad newbie questions about LLVM and its
language
front-ends with regard to cross targeting:<br>
<br>
I assume LLVM IR and bitcode are machine independent, yet bitcode files
encode an arch triple.  Why?  Is it just a hint for subsequent lowering
phases, or it it a recommended target?<br>
<br>
Does IR/bitcode produced by a front-end configured for ARM differ from
bitcode for, say PowerPC or x86?  If different, then perhaps my
assumption is naive that IR/bitcode is completely machine independent?<br>
</font><font size="+1"><br>
I see that I must specify a target to llvm-gcc at configure time, just
as with traditional gcc.  Is that an artifact of GCC's operational
model (because the GCC driver also assembles and links), or is there
something target-specific about how cc1 generates IR/bitcode?<br>
<br>
How do I use clang as a cross compiler?  </font><font size="+1">I
don't see a configure step for specifying a target arch/cpu when
building clang, yet I also don't see options to specify a target
arch/cpu.<br>
<br>
G<br>
<br>
</font>
</body>
</html>