This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
first_example [2018/03/09 15:38] – ursgraf | first_example [2019/11/06 12:27] – ursgraf | ||
---|---|---|---|
Line 2: | Line 2: | ||
This example will demonstrate how to use the deep compiler to translate a simple Java program and run it on a mpc555 target platform. | This example will demonstrate how to use the deep compiler to translate a simple Java program and run it on a mpc555 target platform. | ||
- | - Start eclipse, choose a new workspace and open the deep perspective with //Window -> Open Perspective -> Deep//. | + | - Start eclipse, choose a new workspace and open the deep perspective with //Window -> Open Perspective |
- Create a new deep project with //File// -> //New// -> select // | - Create a new deep project with //File// -> //New// -> select // | ||
- | - On the Target Library wizard page you have to choose where the deep target runtime library is located. | + | - On the Target Library wizard page you have to choose where the deep target runtime library is located. |
- Target Configuration: | - Target Configuration: | ||
- Select a board: //NTB MPC555 Headerboard// | - Select a board: //NTB MPC555 Headerboard// | ||
Line 31: | Line 31: | ||
// 3) Say hello to the world | // 3) Say hello to the world | ||
- | System.out.println(" | + | System.out.println(" |
} | } | ||
} | } | ||
Line 88: | Line 88: | ||
// Print a string to the stdout | // Print a string to the stdout | ||
- | System.out.println(" | + | System.out.println(" |
} | } | ||
} | } | ||
</ | </ | ||
- | 12. The project file will look like < | + | 12. The project file will look like < |
- | #deep-1 | + | #deep-1 |
- | meta { | + | meta { |
- | version = "Mon Jan 05 12:40:12 CET 2015"; | + | version = "Mon Jan 05 12:40:12 CET 2015"; |
- | description = "deep project file for HelloWorld"; | + | description = "deep project file for HelloWorld"; |
- | } | + | } |
- | project HelloWorld { | + | project HelloWorld { |
- | libpath = " | + | libpath = " |
- | boardtype = phyCoreMpc5200io; | + | boardtype = phyCoreMpc5200io; |
- | ostype = ntbSTS; | + | ostype = ntbSTS; |
- | # | + | # |
- | # enter names of rootclasses, | + | # enter names of rootclasses, |
- | # | + | # |
- | rootclasses = " | + | rootclasses = " |
- | imgfile = " | + | imgfile = " |
- | imgformat = BIN; | + | imgformat = BIN; |
- | } | + | } |
- | }</ | + | </ |
16. //Run// will compile, link and create the image file. Use an external debugging device such as an [[http:// | 16. //Run// will compile, link and create the image file. Use an external debugging device such as an [[http:// |