News for hackers. Stuff that matters.
Re:Mozilla Chromeless 0.2 by daeken on Friday April 29, 2011 @10:13PM (#2499690)
> Well, for a start there's the problem that LLVM itself is architecture-dependent, last I checked. It's not as arhictecture-dependent as assembly but the last time I looked you couldn't generate the same LLVM on x86 and x86-64, say. Has that changed?

LLVM bytecode is 100% architecture and platform independent, unless you call into platform-specific bits or into blobs of machine code.

Re:Mozilla Chromeless 0.2 by bzbarsky on Friday April 29, 2011 @10:59PM (#2499763)
OK, so in that case what http://llvm.org/docs/FAQ.html#platformindependent is telling me is that it's not possible to produce said LLVM bytecode from C or C++ code in general, right?

And if I read http://llvm.org/docs/LangRef.html correctly, some bitcode is "not supported by all targets". How is that reconciled with "100% platform and architecture independent"?

Re:Mozilla Chromeless 0.2 by daeken on Saturday April 30, 2011 @01:49AM (#2499993)
Hmm, you're quite right. A better way of putting this would be: a large subset of LLVM IR is platform independent, but not all. My mistake.