Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: a00ea8f40c2ba8565aca3bc3be5f8ba85f5c8475 (plain) (blame)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?xml version="1.0" encoding="iso-8859-1" ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
<!--http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd-->  
<html xmlns="http://www.w3.org/1999/xhtml"  
> 
<head><title>Building the C runtime system</title> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 
<meta name="generator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)" /> 
<meta name="originator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)" /> 
<!-- xhtml,3,next,html --> 
<meta name="src" content="etrice-doc.tex" /> 
<meta name="date" content="2013-06-21 12:20:00" /> 
<link rel="stylesheet" type="text/css" href="etrice-doc.css" /> 
</head><body 
>
<!--l. 57--><div class="crosslinks"><p class="noindent">[<a 
href="etrice-docch5.html" >next</a>] [<a 
href="etrice-docse11.html" >prev</a>] [<a 
href="etrice-docse11.html#tailetrice-docse11.html" >prev-tail</a>] [<a 
href="#tailetrice-docse12.html">tail</a>] [<a 
href="etrice-docch4.html#etrice-docse12.html" >up</a>] </p></div>
<h3 class="sectionHead"><span class="titlemark">4.2   </span> <a 
 id="x18-620004.2"></a>Building the C runtime system</h3>
<!--l. 59--><p class="noindent" >The C runtime system contains some basic functionalities to run the generated models. The so called runtime
is common for all C projects. The requirements for several projects may differ depending on the functionality of
the model or the resources of the different platforms. Therefore the runtime is configurable in terms of
message queue size, frequency and memory alignment. The configuration file <span 
class="ec-lmsso-10">etRuntimeConfig.h </span>is located in
<span 
class="ec-lmsso-10">src/config</span>.
</p><!--l. 65--><p class="noindent" >After changing the configuration, the runtime must be built.
</p><!--l. 67--><p class="noindent" >Open the properties of the <span 
class="ec-lmsso-10">org.eclipse.runtime.c </span>project and select <span 
class="ec-lmsso-10">C/C++ Build-&#x003E;Settings-&#x003E;Tool Settings</span>
and select <span 
class="ec-lmsso-10">Includes</span>.
</p><!--l. 70--><p class="noindent" ><img 
src="images/032-SetupWorkspaceC08.png" alt="PIC"  
 />
</p><!--l. 73--><p class="noindent" >Verify the include paths
</p>
     <ul class="itemize1">
     <li class="itemize"><span 
class="ec-lmsso-10">src/config</span>
     </li>
     <li class="itemize"><span 
class="ec-lmsso-10">src/common</span>
     </li>
     <li class="itemize"><span 
class="ec-lmsso-10">src/platforms/generic</span></li></ul>
<!--l. 81--><p class="noindent" >Within the Setting dialog select the tab <span 
class="ec-lmsso-10">Build Artefact </span>and select <span 
class="ec-lmsso-10">Static Library</span>
</p><!--l. 83--><p class="noindent" ><img 
src="images/032-SetupWorkspaceC09.png" alt="PIC"  
 />
</p><!--l. 86--><p class="noindent" >Build the runtime by clicking
</p><!--l. 88--><p class="noindent" ><img 
src="images/032-SetupWorkspaceC10.png" alt="PIC"  
 />
</p><!--l. 91--><p class="noindent" >The runtime library should be created.
</p><!--l. 93--><p class="noindent" ><img 
src="images/032-SetupWorkspaceC11.png" alt="PIC"  
 />
</p><!--l. 96--><p class="noindent" >For the tutorials one runtime library should be sufficient. For embedded projects it might be necessary to build
project specific runtime libraries. In this case a separate project for the runtime should be created. Symbolic
links to the sources might be used to avoid duplicate files. Just the configuration file must be duplicated. A
specific library file must exist within the project. Such specific runtime libraries might be referenced from
several applications.
                                                                                 
                                                                                 
</p>
<!--l. 1--><div class="crosslinks"><p class="noindent">[<a 
href="etrice-docch5.html" >next</a>] [<a 
href="etrice-docse11.html" >prev</a>] [<a 
href="etrice-docse11.html#tailetrice-docse11.html" >prev-tail</a>] [<a 
href="etrice-docse12.html" >front</a>] [<a 
href="etrice-docch4.html#etrice-docse12.html" >up</a>] </p></div>
<!--l. 1--><p class="noindent" ><a 
 id="tailetrice-docse12.html"></a> </p> 
</body></html> 

Back to the top