> - Rust - can be relatively easy fixed by providing (or patching) a
> target and marking it as a target which doesn't support segmented
> stacks, see example [1]

> - LLVM - as I remember some time ago LLVM generated a function
> prologue which uses the same instruction for any ARM device

The prologue problem was fixed by adding "morestack: false," to the
linux ARM target specification, similar to how it is in the iOS
target.

>    Once it works you can play a bit to provide a correct
>    implementation in record_sp.S and morestack.S

My device does not really benefit from the segmented stack, since it
has only 64MB RAM, so I simply modified libstd/sys/common/stack.rs to
define stubs for all ARMs, not just iOS. Not that I would have the
skills to do it anyway.

With these two modifications I got helloworld working! Thank you for
the segmented stack on iOS hint. I'll now start programming what I
originally wanted, and will report if I find any other problems.

-- 
Tomi Pieviläinen, +358 400 487 504
A: Because it disrupts the natural way of thinking.
Q: Why is top posting frowned upon?

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to