Académique Documents
Professionnel Documents
Culture Documents
EMBEDDED SYSTEMS
PART – A (4 x 2 = 8 Marks)
1. What are the benefit of optimization of memory needs?
When codes are made compact and fitted in available memory areas without
affecting the code performance that is called as an Optimization memory.
Two Compilers are pre-required. One compiler is for the host computer which does
the development and design and also the testing and debugging. The second compiler
is a cross compiler. The cross compiler runs on a host but develops the machine code
for a target system. Example GNU Compiler.
3. Name some features of source code engineering tools for embedded C++.
It searches and lists the dependencies and hierarchies of included header files.
Naviagation
Editing
Debugging
Configuring
All the arguments pass the values and none of the argument is a pointer.
SUDHARSAN ENGINEERING COLLEGE
Sathiyamangalam—622 501, Pudukkottai (Dt.)
Function doesn‟t call any other function that is not itself re-entrant.
PART – B (1 x 12 = 12 Marks)
C++
struct that binds all the member functions together in C. But a C++ class has object
features. It can be extended and child classes can be derived from it. A number of
child classes can be derived from a common class. This feature is called
polymorphism. A class can be declared as public or private. The data and methods
access is restricted when a class is declared private. Struct does not have these
features.
A class binds all the member functions together for creating objects. The objects
will have memory allocation as well as default assignments to its variables that
are not declared static
A class can derive (inherit) from another class also. Creating a child class from
RTCSWT as a parent class creates a new application of the RTCSWT.
Methods (C functions) can have same name in the inherited class. This is called
method overloading
Methods can have the same name as well as the same number and type of
arguments in the inherited class. This is called method overriding. These are the
two significant
features that are extremely useful in a large program.
Operators in C++ can be overloaded like in method overloading.
For example, operators ++ and ! are overloaded to perform a set of operations.
Disadvantages
SUDHARSAN ENGINEERING COLLEGE
Sathiyamangalam—622 501, Pudukkottai (Dt.)