-
Notifications
You must be signed in to change notification settings - Fork 31
Quickstart
Ryota Shioya edited this page May 27, 2015
·
2 revisions
- In this page we introduce how to simulate a sample of "HelloWorld" by Onikiri.
- Extract the following files to the same directory.
- onikiri2-~-base.tar.gz
- onikiri2-~-lib.tar.gz
- onikiri2-~-benchmark.tar.gz
(root of Onikiri)
+--benchmark
+--project
+--src
+--tool
+--lib
| +--boost
...
- Open project/msvc/onikiri2.sln by Visual Studio and 'build'.
- run 'make' by using project/gcc/Makefile
- For the first time, the script extracts the Boost archive so it takes a long time to compile Onikiri.
- Parameters for simulation are set by XML.
- In this tutorial, we use benchmark/HelloWorld/param.xml
- Currently we don't have any documents for this. Please refer to sample XML files and src/DefaultParam.h.
- Choose Project>Properties from the menubar.
- Change "Compsition" to "All Compositions".
- Move to Composition Property>Debug.
- Input "......\benchmark\HelloWorld" in "Working Directory".
- Input "param.xml" in "Command Arguments"
- Choose Debug>Execute without Debug from the menubar to execute.
The execution is a success if "hello, world" is written to the standard output and "result.xml" is generated in the working directory.
- Move to /project/gcc/onikiri2.
- Enter the command below.
./a.out ../../../benchmark/HelloWorld/param.xml
The execution is a success if "hello, world" is written to the standard output and "result.xml" is generated in the working directory.