Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
1
1801_OS_assignment4
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ChoiMinYoung
1801_OS_assignment4
Commits
c30726ff
Commit
c30726ff
authored
7 years ago
by
ChoiMinYoung
Browse files
Options
Downloads
Patches
Plain Diff
first_commit
parent
81530590
Branches
master
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
alloc.c
+6
-0
6 additions, 0 deletions
alloc.c
alloc.h
+6
-0
6 additions, 0 deletions
alloc.h
main
+0
-0
0 additions, 0 deletions
main
main.c
+5
-0
5 additions, 0 deletions
main.c
with
17 additions
and
0 deletions
alloc.c
+
6
−
0
View file @
c30726ff
#include
"alloc.h"
#include
"alloc.h"
#include
<stdint.h>
void
*
m_malloc
(
size_t
size
)
{
}
This diff is collapsed.
Click to expand it.
alloc.h
+
6
−
0
View file @
c30726ff
#ifndef _ALLOC_H_
#ifndef _ALLOC_H_
#define _ALLOC_H_
#define _ALLOC_H_
#include
<stdint.h>
typedef
struct
meta_struct
{
typedef
struct
meta_struct
{
int
*
prev
;
int
*
next
;
uint_32_t
free
;
// free == true 이면 비어있는 공간
// free == faluse 이면 할당되어있는공간
uint_32_t
size
;
}
meta
;
}
meta
;
...
...
This diff is collapsed.
Click to expand it.
main
0 → 100755
+
0
−
0
View file @
c30726ff
File added
This diff is collapsed.
Click to expand it.
main.c
+
5
−
0
View file @
c30726ff
#include
"alloc.h"
#include
"alloc.h"
#include
<sys/typed.h>
#include
<unistd.h>
#include
<stdint.h>
int
main
()
int
main
()
{
{
int
brk
(
*
addr
);
void
*
sbrk
(
intptr_t
incr
);
return
0
;
return
0
;
}
}
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