forked from RamkishanPOTHUGANTI/os_2_project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
34 lines (26 loc) · 1.26 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
REQUIREMENTS :
================================================================
UBUNTU OS VERSION > 16.04
g++ compiler version >
=================================================================
unzip folder
OPEN TERMINAL IN UNZIPPED FOLDER or PRESS CTRL + ALT + T then CHANGE DIRECTORY TO UNZIPPED FOLDER
THEN RUN FOLLOWING COMMANDS i.e TO MAKE LIBRARY
_____________________________________________________________________
TO MAKE LIBRARY
_____________________________________________________________________
$ g++ -Wall -Werror -fpic -c -o libmymem.o -I . libmymem.cpp
$ g++ -shared -o libmymem.so libmymem.o
______________________________________________________________________
TO RUN MEMUTIL WHEN ITS NOT MULTITHREADED .
______________________________________________________________________
$export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
$g++ -I . -L . -Wall -o memutil memutil.cpp -l mymem
$mmemutil -n 100
______________________________________________________________________
TO RUN A MULTITHREADED PROGRAM
______________________________________________________________________
$export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
$g++ -I . -L . -Wall -o memutil memutil.cpp -l mymem -l pthread
$mmemutil -n 100 -t 12
/**** ENSURE YOU MADE LIBRARY BEFORE EXECUTING MEMUTIL ****/