Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
5
5504-research
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Milo Craun
5504-research
Commits
ea408d18
Commit
ea408d18
authored
11 months ago
by
Milo Craun
Browse files
Options
Downloads
Patches
Plain Diff
Added building instructions
parent
2e0d7081
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+17
-1
17 additions, 1 deletion
README.md
with
17 additions
and
1 deletion
README.md
+
17
−
1
View file @
ea408d18
2024-04-10 - Milo - Install cross compiler
# 2024-04-10 - Milo
## Install cross compiler
To run the programs we need on ARM we need to setup a cross
compiler for AArch64. This is actually not too bad.
...
...
@@ -13,3 +14,18 @@ Then we move them to an easier path
`mv gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu aarch`
Now we can use the cross compiler toolchain to compiler our programs.
## Build programs
We need to use the cross compiler, and regular compiler to build out programs.
For both architectures, we need to make sure our binaries are static by using the
`-static`
command line option. This is for gem5 to work.
For AArch64 we need to decide what optimization level we want from gcc.
Regardless of optimization level we can turn on auto-vectorization with
-ftree-vectorize
For X86 we need to include an additional flag -msse (or -msse2 not sure).
We can get more info from the compiler by passing in the -ftree-vectorize-verbose=LEVEL flag.
For more info go to
[
here
](
https://gcc.gnu.org/projects/tree-ssa/vectorization.html
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment