Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
boa
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
Package 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
483-fa23
starter-code
boa
Commits
dd147734
There was an error fetching the commit references. Please try again later.
Commit
dd147734
authored
1 year ago
by
Max New
Browse files
Options
Downloads
Patches
Plain Diff
include the stub file
parent
f6936d1c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
runtime/stub.rs
+13
-0
13 additions, 0 deletions
runtime/stub.rs
with
13 additions
and
0 deletions
runtime/stub.rs
0 → 100644
+
13
−
0
View file @
dd147734
#[link(name
=
"compiled_code"
,
kind
=
"static"
)]
extern
"sysv64"
{
// The \x01 here is an undocumented feature of LLVM that ensures
// it does not add an underscore in front of the name.
#[link_name
=
"
\x01
start_here"
]
fn
start_here
()
->
i64
;
}
fn
main
()
{
let
output
=
unsafe
{
start_here
()
};
println!
(
"{}"
,
output
);
}
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