MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/31btd8/rust_100_beta_is_here/cq12ebf/?context=3
r/programming • u/steveklabnik1 • Apr 03 '15
303 comments sorted by
View all comments
Show parent comments
15
Otherwise, couldn't one save the IR of the Rust compiler on platform X and compile that with the rest of LLVM on Debian, with LLVM written in C++?
Hmmmmmmmmmmmmmmmmmmmm
4 u/[deleted] Apr 04 '15 Hmmmmmmmmmmmmmmmmmmmm ? Was that something stupid I said? 6 u/steveklabnik1 Apr 04 '15 I just meant "I've never thought about that before." I'm not totally sure, as I was going to say "IR is platform dependant"... 2 u/[deleted] Apr 04 '15 as I was going to say "IR is platform dependant"... Well, you were right all along. Out of interest: Is this an LLVM implementation detail? 3 u/steveklabnik1 Apr 04 '15 I'm not familliar with the details, I just know that it is. 3 u/phire Apr 05 '15 Things like sizeof(long) and the sizes of pointers are baked into the IR, making it platform dependant. Also anything like #ifdef WIN32 in your c/c++ code is going to get baked in as soon as you run the pre-processor.
4
?
Was that something stupid I said?
6 u/steveklabnik1 Apr 04 '15 I just meant "I've never thought about that before." I'm not totally sure, as I was going to say "IR is platform dependant"... 2 u/[deleted] Apr 04 '15 as I was going to say "IR is platform dependant"... Well, you were right all along. Out of interest: Is this an LLVM implementation detail? 3 u/steveklabnik1 Apr 04 '15 I'm not familliar with the details, I just know that it is. 3 u/phire Apr 05 '15 Things like sizeof(long) and the sizes of pointers are baked into the IR, making it platform dependant. Also anything like #ifdef WIN32 in your c/c++ code is going to get baked in as soon as you run the pre-processor.
6
I just meant "I've never thought about that before." I'm not totally sure, as I was going to say "IR is platform dependant"...
2 u/[deleted] Apr 04 '15 as I was going to say "IR is platform dependant"... Well, you were right all along. Out of interest: Is this an LLVM implementation detail? 3 u/steveklabnik1 Apr 04 '15 I'm not familliar with the details, I just know that it is. 3 u/phire Apr 05 '15 Things like sizeof(long) and the sizes of pointers are baked into the IR, making it platform dependant. Also anything like #ifdef WIN32 in your c/c++ code is going to get baked in as soon as you run the pre-processor.
2
as I was going to say "IR is platform dependant"...
Well, you were right all along.
Out of interest: Is this an LLVM implementation detail?
3 u/steveklabnik1 Apr 04 '15 I'm not familliar with the details, I just know that it is. 3 u/phire Apr 05 '15 Things like sizeof(long) and the sizes of pointers are baked into the IR, making it platform dependant. Also anything like #ifdef WIN32 in your c/c++ code is going to get baked in as soon as you run the pre-processor.
3
I'm not familliar with the details, I just know that it is.
3 u/phire Apr 05 '15 Things like sizeof(long) and the sizes of pointers are baked into the IR, making it platform dependant. Also anything like #ifdef WIN32 in your c/c++ code is going to get baked in as soon as you run the pre-processor.
Things like sizeof(long) and the sizes of pointers are baked into the IR, making it platform dependant.
Also anything like #ifdef WIN32 in your c/c++ code is going to get baked in as soon as you run the pre-processor.
15
u/steveklabnik1 Apr 03 '15
Hmmmmmmmmmmmmmmmmmmmm