Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
e69cff63
Commit
e69cff63
authored
Jul 02, 2014
by
dbarbera
Browse files
Execute generated IR
parent
5cefbcf0
Changes
3
Hide whitespace changes
Inline
Side-by-side
tests/regression/test6/Makefile
View file @
e69cff63
...
...
@@ -7,16 +7,18 @@ test-ada:
../../../opengeode.py
--toAda
myfunction.pr system_structure.pr
asn1.exe
-Ada
dataview-uniq.asn
-typePrefix
asn1Scc
-equal
gnatmake
-c
myfunction.adb
gcc
-c
test.c
gcc
-c
test
_ada
.c
gnatbind
-n
myfunction.ali
gnatlink
-o
testcase test.o myfunction.ali
-lgnat
./testcase
gnatlink
-o
testcase test_ada.o myfunction.ali
-lgnat
./testcase | diff expected -
test-llvm
:
../../../opengeode.py myfunction.pr system_structure.pr
--llvm
llc myfunction.ll
gcc
-c
myfunction.s
gcc
-c
test_llvm.c
gcc myfunction.o test_llvm.o
-o
testcase
./testcase | diff expected -
coverage
:
coverage run
-p
../../../opengeode.py myfunction.pr system_structure.pr
--toAda
...
...
tests/regression/test6/test.c
→
tests/regression/test6/test
_ada
.c
View file @
e69cff63
File moved
tests/regression/test6/test_llvm.c
0 → 100644
View file @
e69cff63
#include
<math.h>
#include
<stdio.h>
extern
void
myfunction_startup
();
void
myfunction_RI_result_data
(
long
long
*
val
)
{
printf
(
"[C] result_data: %lld
\n
"
,
*
val
);
}
void
myfunction_RI_set_mytimer
(
long
long
*
val
)
{
printf
(
"[C] SET MyTimer: %lld
\n
"
,
*
val
);
}
void
myfunction_RI_reset_mytimer
()
{
printf
(
"RESET MyTimer
\n
"
);
}
int
main
()
{
printf
(
"[C Code] Running test
\n
"
);
myfunction_startup
();
return
0
;
}
Write
Preview
Supports
Markdown
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