Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
latte
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zygzagZ
latte
Commits
be5be9c9
Commit
be5be9c9
authored
Dec 31, 2020
by
zygzagZ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
error do lib
parent
50ebcb21
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
.gitignore
.gitignore
+2
-0
hello32.s
hello32.s
+1
-1
runtime.c
lib/runtime.c
+6
-0
No files found.
.gitignore
View file @
be5be9c9
...
...
@@ -6,3 +6,5 @@ t.e
/lat/
/latc
/tests/
hello
dist
hello32.s
View file @
be5be9c9
...
...
@@ -15,4 +15,4 @@ pushl $hello
call printStr
movl $0, %eax
pushl $0
call e
xit
call e
rror
lib/runtime.c
View file @
be5be9c9
...
...
@@ -2,6 +2,7 @@
// as --32 hello32.s -o hello32.o
// ld -m elf_i386 -L. -e main runtime.o hello32.o -lc
#include <stdio.h>
#include <stdlib.h>
int
printInt
(
int
a
)
{
printf
(
"%d
\n
"
,
a
);
...
...
@@ -39,3 +40,8 @@ int readInt () {
else
return
result
;
}
void
error
()
{
puts
(
"runtime error"
);
exit
(
1
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment