The
generated code can be linked with the existing code and compiled to a ?¬?nished
executable without additional manual effort (e.g., Batory et al., 2000). The
generated code is thus simply an intermediate by-product on the way to the ?¬?nished
product, like .o ?¬?les in C compilation. Such automated full code generation is
possible because both the modeling language and generators need ?¬?t only narrow
requirements.
DSM CHARACTERISTICS 49
We should keep in mind that full code generation is inspected here from the
modelers??™ perspective: legacy code, components, and other supporting framework
code may be written manually. In Chapter 4, we discuss the division between
languages, generators, manually written and legacy code in more detail.
Both Static and Behavioral Code is Covered Full code generation requires
that the code produced cover both static and behavioral structures. DSM can provide
support for both. Usually producing static code is relatively simple, and most
template-based generators provide for this. Since generating static code like class
skeletons or database schemas is well known, in this book we focus mostly on the
behavioral side. For the same reason, the example cases in Part III deal (with one
exception) with generating behavioral code. Generating behavioral code is more
challenging and support from the modeling language and usually from the domain
framework also becomes necessary.
Pages:
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112