Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
e7020e_2019
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
Model registry
Operate
Environments
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
Henrik Theolin
e7020e_2019
Commits
c6bd08fc
Commit
c6bd08fc
authored
6 years ago
by
Henrik Theolin
Browse files
Options
Downloads
Patches
Plain Diff
bare2_1
parent
3b4a1cd9
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.cargo/config
+1
-1
1 addition, 1 deletion
.cargo/config
examples/bare2.rs
+11
-3
11 additions, 3 deletions
examples/bare2.rs
with
12 additions
and
4 deletions
.cargo/config
+
1
−
1
View file @
c6bd08fc
...
...
@@ -25,7 +25,7 @@ rustflags = [
# "-C", "link-arg=-nostartfiles",
# uncomment for unchecked wrapping arithmetics also in dev mode
"-Z", "force-overflow-checks=off",
#
"-Z", "force-overflow-checks=off",
]
[build]
...
...
This diff is collapsed.
Click to expand it.
examples/bare2.rs
+
11
−
3
View file @
c6bd08fc
...
...
@@ -71,18 +71,26 @@ fn main() -> ! {
//
// What is the output in the ITM console?
//
// ** your answer here **
// **
// [2019-02-21T12:23:01.072Z] bare2
// [2019-02-21T12:23:29.117Z] Start 42606
// [2019-02-21T12:23:29.118Z] End 448042815
// **
//
// Rebuild and run in release mode
//
// > cargo build --example bare2 --release
//
// ** your answer here **
// **
// [2019-02-21T12:30:44.941Z] bare2
// [2019-02-21T12:30:45.142Z] Start 3057860134
// [2019-02-21T12:30:45.142Z] End 3061860142
// **
//
// Compute the ratio between debug/release optimized code
// (the speedup).
//
// **
your answer here
**
// **
448000209 / 4000008 = 111,99982825 times
**
//
// commit your answers (bare2_1)
//
...
...
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