Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial version of AArch64 support (build system, sources, tests). #19790

Merged
merged 1 commit into from
Jan 3, 2015

Conversation

akosthekiss
Copy link
Contributor

Preparing AArch64 support, starting work at the build system.

@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see CONTRIBUTING.md for more information.

@alexcrichton
Copy link
Member

Awesome! Could you measure the before/after size of LLVM after enabling the AArch64 target? This will be included in basically all Rust compilers, so just want to make sure we're not tacking on a huge amount of data!

@akosthekiss
Copy link
Contributor Author

Certainly. Below are some before/after file sizes.

Before:
x86_64-unknown-linux-gnu/llvm/Release+Asserts/lib/libLLVMAArch64*.a: 0M
x86_64-unknown-linux-gnu/stage2/lib/librustc_llvm-4e7c5e5c.so: 36,259K
x86_64-unknown-linux-gnu/stage3/bin/rustc: 51,329K

After:
x86_64-unknown-linux-gnu/llvm/Release+Asserts/lib/libLLVMAArch64*.a: 5.6M
x86_64-unknown-linux-gnu/stage2/lib/librustc_llvm-4e7c5e5c.so: 39,214K
x86_64-unknown-linux-gnu/stage3/bin/rustc: 54,151K

@akosthekiss
Copy link
Contributor Author

It seems that because of the rebase, I've lost the r+. My bad. May I ask for it again? Sorry for the hassle.

@alexcrichton
Copy link
Member

ping @brson, sorry I keep missing you on IRC, but I'm curious about your thoughts about adding AArch64 to the build.

@akosthekiss akosthekiss changed the title Adding AArch64 knowledge to configure and the make files. Initial version of AArch64 support (build system, sources, tests). Dec 21, 2014
@vhbit
Copy link
Contributor

vhbit commented Dec 23, 2014

I'd also like to push it further as want to move forward with arm64 support for iOS - in February all apps are required to have a binary compiled for arm64.

@vhbit
Copy link
Contributor

vhbit commented Dec 23, 2014

@akiss77 needs a rebase

@akosthekiss akosthekiss force-pushed the aarch64-configure branch 2 times, most recently from 31543fe to 70c423e Compare December 23, 2014 22:43
@akosthekiss
Copy link
Contributor Author

@vhbit did it - glad to see interest in aarch64/arm64 (although I'm not really familiar with iOS)

mov x1, x3
mov x2, x4
br x5
endfunc rust_bootstrap_green_task
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Context switching codes for other architectures were removed in #20135.

@akosthekiss akosthekiss force-pushed the aarch64-configure branch 2 times, most recently from befc1fb to ae77605 Compare December 28, 2014 00:15
@vhbit
Copy link
Contributor

vhbit commented Dec 29, 2014

@alexcrichton so what's status of this?

@alexcrichton
Copy link
Member

Ok, I've chatted with @brson about this and we'd like to move forward with this, thanks for being patient and sorry about the delay!

@alexcrichton
Copy link
Member

Ah yes I forgot! Could you also touch the src/rustllvm/llvm-auto-clean-trigger file to trigger an LLVM rebuild?

let base = super::linux_base::opts();
Target {
data_layout: "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-\
f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-\
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

correct format for aggregates data layout should be a:0:64 instead of a0:0:64, see here

@akosthekiss akosthekiss force-pushed the aarch64-configure branch 2 times, most recently from a9d2e48 to 24cb7a4 Compare January 3, 2015 00:47
@akosthekiss
Copy link
Contributor Author

Thanks for the good news and sorry about the delay on my side (had some parties to survive...) Did all the requested updates. Happy New Year to all!

@akosthekiss
Copy link
Contributor Author

I've run into a syntax change (arrays) :/ Updated.

Adds AArch64 knowledge to:
* configure,
* make files,
* sources,
* tests, and
* documentation.
bors added a commit that referenced this pull request Jan 3, 2015
Preparing AArch64 support, starting work at the build system.
@bors bors merged commit 6e5fb8b into rust-lang:master Jan 3, 2015
@akosthekiss
Copy link
Contributor Author

Oh, yes. Thanks for all the reviews, feedback & support!

@akosthekiss akosthekiss deleted the aarch64-configure branch January 4, 2015 09:37
@alexcrichton alexcrichton mentioned this pull request Jan 14, 2015
bors added a commit that referenced this pull request Jan 12, 2016
I also re-enabled the use of `#[thread_local]` on AArch64. It was originally disabled in the PR that introduced AArch64 (#19790), but the reasons for this were not explained. `#[thread_local]` seems to work fine in my tests on AArch64, so I don't think this should be an issue.

cc @alexcrichton @akiss77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants