Re: [rust-dev] target json documentation

2014-12-09 Thread Nathan Sizemore
Hello, I'm not aware of an option to rustc that allows a json file to passed for compilation options (I'm assuming this is what you're referring to)? Documentation for building a crate using Cargo - http://doc.crates.io/guide.html Or From a terminal, run man rustc or rustc --help for list of

Re: [rust-dev] target json documentation

2014-12-09 Thread C K Kashyap
Hi Nathan, I've used it here - https://github.com/ckkashyap/unix/blob/master/kernel/Makefile and it appears that the compiler does honor the contents of the json file that is passed. Regards, Kashyap On Tue, Dec 9, 2014 at 6:13 PM, Nathan Sizemore nathanrsizem...@gmail.com wrote: Hello, I'm

Re: [rust-dev] target json documentation

2014-12-09 Thread Nathan Sizemore
Huh, never knew that was possible. Unfortunately, I have nothing to help with that... Hopefully someone else will have something for you. Nathan Nathan Sizemore @nathansizemore | 937.823.7229 On Tue, Dec 9, 2014 at 8:02 AM, C K Kashyap ckkash...@gmail.com wrote: Hi Nathan, I've used it

Re: [rust-dev] compiler option --target json documentation

2014-12-09 Thread C K Kashyap
Updated the subject - On Tue, Dec 9, 2014 at 6:39 PM, Nathan Sizemore nathanrsizem...@gmail.com wrote: Huh, never knew that was possible. Unfortunately, I have nothing to help with that... Hopefully someone else will have something for you. Nathan Nathan Sizemore @nathansizemore |

Re: [rust-dev] target json documentation

2014-12-09 Thread Valerii Hiora
Hi Kashyap, I've used it here - https://github.com/ckkashyap/unix/blob/master/kernel/Makefile and it appears that the compiler does honor the contents of the json file that is passed. Corey Richardson can help you with that. -- Valerii signature.asc Description: OpenPGP digital

Re: [rust-dev] target json documentation

2014-12-09 Thread Corey Richardson
http://static.rust-lang.org/doc/master/rustc_back/target/index.html On Tue, Dec 9, 2014 at 8:55 AM, Valerii Hiora valerii.hi...@gmail.com wrote: Hi Kashyap, I've used it here - https://github.com/ckkashyap/unix/blob/master/kernel/Makefile and it appears that the compiler does honor the

Re: [rust-dev] target json documentation

2014-12-09 Thread C K Kashyap
Excellent - just what I was looking for. Thanks Corey and Valerii! Regards, Kashyap On Tue, Dec 9, 2014 at 10:47 PM, Corey Richardson co...@octayn.net wrote: http://static.rust-lang.org/doc/master/rustc_back/target/index.html On Tue, Dec 9, 2014 at 8:55 AM, Valerii Hiora

[rust-dev] Curious about instruction pointer being used to compute string offset

2014-12-09 Thread C K Kashyap
Hi, Looks like on my ubuntu 64 bit, when I compile hello(ABCD); I get 719e: 48 8d 05 e0 68 04 00lea0x468e0(%rip),%rax# 4da85 str1405 71a5: 48 89 44 24 08 mov%rax,0x8(%rsp) 71aa: 48 c7 44 24 10 04 00movq $0x4,0x10(%rsp)

Re: [rust-dev] Curious about instruction pointer being used to compute string offset

2014-12-09 Thread Daniel Micay
On 09/12/14 10:43 PM, C K Kashyap wrote: Hi, Looks like on my ubuntu 64 bit, when I compile hello(ABCD); I get 719e: 48 8d 05 e0 68 04 00lea0x468e0(%rip),%rax # 4da85 str1405 71a5: 48 89 44 24 08 mov%rax,0x8(%rsp) 71aa:

Re: [rust-dev] Curious about instruction pointer being used to compute string offset

2014-12-09 Thread C K Kashyap
oh nice ... In my kernel I am running into an issue where I am looping though an str but it does not get the right characters (all zeros actually) - https://github.com/ckkashyap/unix/blob/master/kernel/uart.rs While I've used the PIC option several times, I had not realized that rip relative