Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wasm-study
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
wasm-study
Commits
5f925a65
Commit
5f925a65
authored
Nov 07, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
4d471fb3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
Makefile
Makefile
+6
-1
prog.c
prog.c
+12
-0
No files found.
Makefile
View file @
5f925a65
...
...
@@ -9,7 +9,12 @@ CC := emcc -s WASM=0
SO
:=
js
endif
all
:
libk_so.$(SO)
#all : libk_so.$(SO)
all
:
prog.js
libk_so.$(SO)
:
$(CC)
-s
SIDE_MODULE
=
1
-DLIBK_COMPILE
-o
$@
libk.c
prog.js
:
libk_so.$(SO)
$(CC)
-s
MAIN_MODULE
=
1
-o
$@
prog.c
prog.c
0 → 100644
View file @
5f925a65
#include <stdio.h>
#include "libk.h"
int
main
()
{
int
k
;
printf
(
"prog!
\n
"
);
k
=
kfunc1
();
printf
(
"libk.kfunc1 -> %d
\n
"
,
k
);
return
0
;
}
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