10. COMPONENTS OF EMBEDDED PROGRAM
FSM
Fetaures
Seat belt controller
Concept
C implementation
QUEUE
Unpredictable
Eg: Car driver
P/C system
10
CIRCULAR BUFFER
APP
Concept with 6 Data
stream
C implementation
12. MODELS OF PROGRAM
C-text
Inorder to compile
& Optimize the pro
we need DS.
Reason not considering the source
code?
DFG
original basic block
single assignment form
Implementation of DFG from single
assignment form
12
13. MODELS OF PROGRAM
x = a + b;
y = c - d;
z = x * y;
y = b + d;
original basic block
single assignment form
x = a + b;
y = c - d;
z = x * y;
y1 = b + d;
13
15. Control-data flow graph
> CDFG: represents the
data flow with control.
> Uses data flow graphs as
components.
> Two types of nodes:
- decision;
- data flow.
15
x = a + b;
y = c + d
31. PROCESS.
1st PASS
SCANNING
It scans from top to
bottom
Any inst with label
name its value will be
stored in symbol table
.
While scanning,
PLC plays a major role.
It stores the current
location in the memory
After examining,
Assembler updated the
PLC+?
If next inst. Starts with
label name once again a new
entry will be made in Symbol
table
2nd PASS
When the same label
name is encountered
,the ST acts as LUT.
On looking @ the ST
that particular value
will be substituted.
31
33. LINKER
> Major tasks:
> Combines several object modules into a single
executable module.
> Jobs:
- put modules in order;
- resolve labels across modules.
33
34. LINKER- 2 PHASES
> First, it determines the address of the start of
each object file
> the loader merges all symbol tables from the
object files into a single, large table
> then edits the object files to change relative
addresses into addresses
34