Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Ordonnancement
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
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ASE-2021
Ordonnancement
Commits
ef357cf0
Commit
ef357cf0
authored
4 years ago
by
Thierno-Souleymane Bah
Browse files
Options
Downloads
Patches
Plain Diff
feat(display_stack programm done))
parent
dac65dfc
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+3
-0
3 additions, 0 deletions
.gitignore
Makefile
+10
-0
10 additions, 0 deletions
Makefile
display_stack.c
+21
-0
21 additions, 0 deletions
display_stack.c
with
34 additions
and
0 deletions
.gitignore
0 → 100644
+
3
−
0
View file @
ef357cf0
*.o
*.s
display_stack
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Makefile
0 → 100644
+
10
−
0
View file @
ef357cf0
all
:
display_stack
display_stack
:
display_stack.o
gcc
-o
$@
$^
%.o
:
%.c
gcc
-c
$<
clean
:
rm
-f
*
.o
*
.s display_stack
This diff is collapsed.
Click to expand it.
display_stack.c
0 → 100644
+
21
−
0
View file @
ef357cf0
#include
<stdio.h>
int
display
(
int
pa
,
int
pb
,
int
pc
)
{
printf
(
"pa=%p; pb=%p; pc=%p
\n
"
,
&
pa
,
&
pb
,
&
pc
);
return
0
;
}
int
main
()
{
int
a
,
b
;
int
la
,
lb
,
lc
;
asm
(
"movl %%esp, %0"
"
\n\t
"
"movl %%ebp, %1"
:
"=r"
(
a
),
"=r"
(
b
));
printf
(
"esp=%p; ebp=%p
\n
"
,
&
a
,
&
b
);
printf
(
"la=%p; lb=%p; lc=%p
\n
"
,
&
la
,
&
lb
,
&
lc
);
return
display
(
la
,
lb
,
lc
);
}
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