SlideShare a Scribd company logo
1 of 17
Download to read offline
Characteristics of Realtime and
Embedded Systems
Chapter 1
1/6/2023 1
Embedded Systems
• Embedded systems are computing systems with tightly
coupled hardware and software integration.
• Designed to perform dedicated function
• Embedded means that the system is a integral part of a
larger system
• Multiple embedded systems can co-exist in a single
system.
• General purpose processor are typically not aware of
the applications.
• An embedded processor is application-aware.
1/6/2023 2
Embedded Systems (contd.)
• Hardware and software co-design: hardware and
software for the embedded system are developed
in parallel.
• Cross-platform development: Both embedded
system and its application use the cross-platform
development method.
– Software is developed on one platform but runs on
another.
• Software storage will have to be chosen to allow
for upgradeability.
• Of course, the SoC, PoE, etc.
1/6/2023 3
Realtime Systems
1/6/2023 4
Real-time
systems
Timing constraints
Synchronous
& asynchronous
Events
Synchronous &
Asynchronous
Outputs
Real-time Systems
• Real-time systems are those systems in which
the overall correctness of the system depends
on both the functional correctness and the
timing correctness.
• Realtime systems also have a substantial
knowledge of the system it controls and the
applications running on it.
• Deadline dependent.
• Predictability is important.
1/6/2023 5
Hard and soft Real-time Systems
• A hard real-time systems is a real-time system
that must meet its deadlines with a near zero
degree of flexibility. Deadlines must be met,
otherwise catastrophes occur.
• A soft-time system is a real-time system that
must its deadlines but with a degree of flexibility.
The deadlines contains various levels of
tolerance, even statistical distribution of response
times with different degrees of acceptability.
• An important requirement: scheduling
algorithms
1/6/2023 6
Real-time Embedded Systems
1/6/2023 7
RTS EMB
RTEMB
Railway monitoring and scheduling : RTS
Cell phone: EMB
Heart pacemaker: RTSEMB
Chapter 2: Basics of Development for
Embedded Systems
• Typical cross-platform development environment
• Host system: essential tools are cross compiler,
linker, source level debugger
• Executable image contains RTOS, Kernel,
application program: compiled and linked
• Target system: where to store the executable
image, and how?
• Connections: ethernet and serial
• See figure 2.1
1/6/2023 8
Making of an Executable
• Makefile
• Demo
1/6/2023 9
Compile and Link
• Compiler converts the high level language code into
native machine code or object code
• Linker does symbol resolution and symbol relocation to
generate the executable code:
• See Figure 2.3
• Symbol resolution is the process by which the linked
goes through each object file and determines where
the external symbols in it are located. Then it copies
the required file into the final image.
• Symbol relocation is the process in which the linker
maps symbol reference to its definition.
1/6/2023 10
ELF (Executable Linker Format)
• An object file contains:
– file size, binary code, data size, source file name
and other general information
– Machine architecture specific binary instructions
and data
– Symbol table and relocation table
– Debug information, which the debugger uses
• There are standards for organizing object file
formats. ELF is very commonly used format.
1/6/2023 11
ELF (contd.)
• Compiler organizes the compiled code into system-defined
as well as user-defined content groupings called sections.
• Example sections: binary code, symbol table
• Each section also has important information about load
address and run address.
• Section header and program header: Listing 2.1
• A section header table is an array of section header
sections of an object file.
• A program header table is array of program header
structures describing a loadable segment of an image.
`
1/6/2023 12
Section Types (sh_types)
1/6/2023 13
• PROGBITS code or initialized data
• SYMTAB etc.
• Some common system created default sections
are: .text, .data, .sdata
• Section attributes (sh_flags) : WRITE, ALLOC,
EXECINSTR
• sh_addr is the section address and p_addr is the
program address on the target machine
User defined sections
• You could add user-defined sections:
.section mysection
If you were to create the embedded program
from scratch you will define it in terms of
sections as defined above.
Remember the .data and .text sections from
your MIPS code (of cse341).
1/6/2023 14
Mapping Executable Images into
Target Embedded Systems
• Multiple source files (C/C++, assemble) have been
compiled and assembled into object files, a linker
must combine these object files and merge sections
from different object files into program segments.
• The process creates a single executable image for the
target embedded system.
• Embedded system developer uses linker directives to
control how the linker combines sections and
allocates segments into target system.
• Common directives are MEMORY and SECTION (see
examples Listing 2.2 and 2.3)
1/6/2023 15
Memory Map of the Target System
• See fig 2.5 and compare it with MEMORY
directive listing 2.2
• Also check out the memory map of XINU
• Section .text can be mapped to ROM, Flash or
Ram where the section .data has to be
mapped to RAM.
1/6/2023 16
Generating Executable Image
• Combining multiple sections into executable
image: fig. 2.6
• Mapping executable image into target
memory fig 2.7
• Module upgradability through flash memory.
• Use SDRAM for code /data that require fast
access and DRAM for the rest of the
code/data.
• See Listing 2.5 and Figure 2.8 for examples.
1/6/2023 17

More Related Content

Similar to Ch1Ch2Sept10.pdf

embeddedsystems-100429081552-phpapp01.pdf
embeddedsystems-100429081552-phpapp01.pdfembeddedsystems-100429081552-phpapp01.pdf
embeddedsystems-100429081552-phpapp01.pdfAshwin180668
 
Windows internals
Windows internalsWindows internals
Windows internalsPiyush Jain
 
Initial Architectural Design (Game Architecture)
Initial Architectural Design (Game Architecture)Initial Architectural Design (Game Architecture)
Initial Architectural Design (Game Architecture)Rajkumar Pawar
 
Mba i-ifm-u-2-computer software
Mba i-ifm-u-2-computer softwareMba i-ifm-u-2-computer software
Mba i-ifm-u-2-computer softwareRai University
 
Module 1 embedded software essentials
Module 1 embedded software essentialsModule 1 embedded software essentials
Module 1 embedded software essentialsSaad Elkheety
 
Bsc cs 1 fit u-2 application and system software
Bsc cs 1 fit u-2 application and system softwareBsc cs 1 fit u-2 application and system software
Bsc cs 1 fit u-2 application and system softwareRai University
 
Chromium os architecture report
Chromium os  architecture reportChromium os  architecture report
Chromium os architecture reportAmr Abd El Latief
 
Bca i-fundamental of computer-u-2- application and system software
Bca  i-fundamental of  computer-u-2- application and system softwareBca  i-fundamental of  computer-u-2- application and system software
Bca i-fundamental of computer-u-2- application and system softwareRai University
 
Mca i-fundamental of computer-u-2- application and system software
Mca  i-fundamental of  computer-u-2- application and system softwareMca  i-fundamental of  computer-u-2- application and system software
Mca i-fundamental of computer-u-2- application and system softwareRai University
 
System software and its types
System software and its typesSystem software and its types
System software and its typessamina khan
 
Bba i-introduction to computer-u-2- application and system software
Bba  i-introduction to computer-u-2- application and system softwareBba  i-introduction to computer-u-2- application and system software
Bba i-introduction to computer-u-2- application and system softwareRai University
 
Multimedia authoring and user interface
Multimedia authoring and user interface Multimedia authoring and user interface
Multimedia authoring and user interface nirmalbj
 
unit 5 Architectural design
 unit 5 Architectural design unit 5 Architectural design
unit 5 Architectural designdevika g
 
.net Based Component Technologies
.net Based Component Technologies.net Based Component Technologies
.net Based Component Technologiesprakashk453625
 
Tech presentation (part 1)
Tech presentation (part 1)Tech presentation (part 1)
Tech presentation (part 1)Abhijit Roy
 
Unit 2 computer software
Unit 2 computer softwareUnit 2 computer software
Unit 2 computer softwareHardik Patel
 
West Coast DevCon 2014: Engine Overview - A Programmers Glimpse at UE4
West Coast DevCon 2014: Engine Overview - A Programmers Glimpse at UE4West Coast DevCon 2014: Engine Overview - A Programmers Glimpse at UE4
West Coast DevCon 2014: Engine Overview - A Programmers Glimpse at UE4Gerke Max Preussner
 

Similar to Ch1Ch2Sept10.pdf (20)

Embedded
EmbeddedEmbedded
Embedded
 
embeddedsystems-100429081552-phpapp01.pdf
embeddedsystems-100429081552-phpapp01.pdfembeddedsystems-100429081552-phpapp01.pdf
embeddedsystems-100429081552-phpapp01.pdf
 
Windows internals
Windows internalsWindows internals
Windows internals
 
Initial Architectural Design (Game Architecture)
Initial Architectural Design (Game Architecture)Initial Architectural Design (Game Architecture)
Initial Architectural Design (Game Architecture)
 
Mba i-ifm-u-2-computer software
Mba i-ifm-u-2-computer softwareMba i-ifm-u-2-computer software
Mba i-ifm-u-2-computer software
 
Module 1 embedded software essentials
Module 1 embedded software essentialsModule 1 embedded software essentials
Module 1 embedded software essentials
 
Bsc cs 1 fit u-2 application and system software
Bsc cs 1 fit u-2 application and system softwareBsc cs 1 fit u-2 application and system software
Bsc cs 1 fit u-2 application and system software
 
Chromium os architecture report
Chromium os  architecture reportChromium os  architecture report
Chromium os architecture report
 
Bca i-fundamental of computer-u-2- application and system software
Bca  i-fundamental of  computer-u-2- application and system softwareBca  i-fundamental of  computer-u-2- application and system software
Bca i-fundamental of computer-u-2- application and system software
 
Mca i-fundamental of computer-u-2- application and system software
Mca  i-fundamental of  computer-u-2- application and system softwareMca  i-fundamental of  computer-u-2- application and system software
Mca i-fundamental of computer-u-2- application and system software
 
System software and its types
System software and its typesSystem software and its types
System software and its types
 
Bba i-introduction to computer-u-2- application and system software
Bba  i-introduction to computer-u-2- application and system softwareBba  i-introduction to computer-u-2- application and system software
Bba i-introduction to computer-u-2- application and system software
 
Multimedia authoring and user interface
Multimedia authoring and user interface Multimedia authoring and user interface
Multimedia authoring and user interface
 
unit 5 Architectural design
 unit 5 Architectural design unit 5 Architectural design
unit 5 Architectural design
 
.net Based Component Technologies
.net Based Component Technologies.net Based Component Technologies
.net Based Component Technologies
 
Windows 2000
Windows 2000Windows 2000
Windows 2000
 
Tech presentation (part 1)
Tech presentation (part 1)Tech presentation (part 1)
Tech presentation (part 1)
 
Unit 2 computer software
Unit 2 computer softwareUnit 2 computer software
Unit 2 computer software
 
West Coast DevCon 2014: Engine Overview - A Programmers Glimpse at UE4
West Coast DevCon 2014: Engine Overview - A Programmers Glimpse at UE4West Coast DevCon 2014: Engine Overview - A Programmers Glimpse at UE4
West Coast DevCon 2014: Engine Overview - A Programmers Glimpse at UE4
 
Distributive operating system
Distributive operating systemDistributive operating system
Distributive operating system
 

Recently uploaded

Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 

Recently uploaded (20)

Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 

Ch1Ch2Sept10.pdf

  • 1. Characteristics of Realtime and Embedded Systems Chapter 1 1/6/2023 1
  • 2. Embedded Systems • Embedded systems are computing systems with tightly coupled hardware and software integration. • Designed to perform dedicated function • Embedded means that the system is a integral part of a larger system • Multiple embedded systems can co-exist in a single system. • General purpose processor are typically not aware of the applications. • An embedded processor is application-aware. 1/6/2023 2
  • 3. Embedded Systems (contd.) • Hardware and software co-design: hardware and software for the embedded system are developed in parallel. • Cross-platform development: Both embedded system and its application use the cross-platform development method. – Software is developed on one platform but runs on another. • Software storage will have to be chosen to allow for upgradeability. • Of course, the SoC, PoE, etc. 1/6/2023 3
  • 4. Realtime Systems 1/6/2023 4 Real-time systems Timing constraints Synchronous & asynchronous Events Synchronous & Asynchronous Outputs
  • 5. Real-time Systems • Real-time systems are those systems in which the overall correctness of the system depends on both the functional correctness and the timing correctness. • Realtime systems also have a substantial knowledge of the system it controls and the applications running on it. • Deadline dependent. • Predictability is important. 1/6/2023 5
  • 6. Hard and soft Real-time Systems • A hard real-time systems is a real-time system that must meet its deadlines with a near zero degree of flexibility. Deadlines must be met, otherwise catastrophes occur. • A soft-time system is a real-time system that must its deadlines but with a degree of flexibility. The deadlines contains various levels of tolerance, even statistical distribution of response times with different degrees of acceptability. • An important requirement: scheduling algorithms 1/6/2023 6
  • 7. Real-time Embedded Systems 1/6/2023 7 RTS EMB RTEMB Railway monitoring and scheduling : RTS Cell phone: EMB Heart pacemaker: RTSEMB
  • 8. Chapter 2: Basics of Development for Embedded Systems • Typical cross-platform development environment • Host system: essential tools are cross compiler, linker, source level debugger • Executable image contains RTOS, Kernel, application program: compiled and linked • Target system: where to store the executable image, and how? • Connections: ethernet and serial • See figure 2.1 1/6/2023 8
  • 9. Making of an Executable • Makefile • Demo 1/6/2023 9
  • 10. Compile and Link • Compiler converts the high level language code into native machine code or object code • Linker does symbol resolution and symbol relocation to generate the executable code: • See Figure 2.3 • Symbol resolution is the process by which the linked goes through each object file and determines where the external symbols in it are located. Then it copies the required file into the final image. • Symbol relocation is the process in which the linker maps symbol reference to its definition. 1/6/2023 10
  • 11. ELF (Executable Linker Format) • An object file contains: – file size, binary code, data size, source file name and other general information – Machine architecture specific binary instructions and data – Symbol table and relocation table – Debug information, which the debugger uses • There are standards for organizing object file formats. ELF is very commonly used format. 1/6/2023 11
  • 12. ELF (contd.) • Compiler organizes the compiled code into system-defined as well as user-defined content groupings called sections. • Example sections: binary code, symbol table • Each section also has important information about load address and run address. • Section header and program header: Listing 2.1 • A section header table is an array of section header sections of an object file. • A program header table is array of program header structures describing a loadable segment of an image. ` 1/6/2023 12
  • 13. Section Types (sh_types) 1/6/2023 13 • PROGBITS code or initialized data • SYMTAB etc. • Some common system created default sections are: .text, .data, .sdata • Section attributes (sh_flags) : WRITE, ALLOC, EXECINSTR • sh_addr is the section address and p_addr is the program address on the target machine
  • 14. User defined sections • You could add user-defined sections: .section mysection If you were to create the embedded program from scratch you will define it in terms of sections as defined above. Remember the .data and .text sections from your MIPS code (of cse341). 1/6/2023 14
  • 15. Mapping Executable Images into Target Embedded Systems • Multiple source files (C/C++, assemble) have been compiled and assembled into object files, a linker must combine these object files and merge sections from different object files into program segments. • The process creates a single executable image for the target embedded system. • Embedded system developer uses linker directives to control how the linker combines sections and allocates segments into target system. • Common directives are MEMORY and SECTION (see examples Listing 2.2 and 2.3) 1/6/2023 15
  • 16. Memory Map of the Target System • See fig 2.5 and compare it with MEMORY directive listing 2.2 • Also check out the memory map of XINU • Section .text can be mapped to ROM, Flash or Ram where the section .data has to be mapped to RAM. 1/6/2023 16
  • 17. Generating Executable Image • Combining multiple sections into executable image: fig. 2.6 • Mapping executable image into target memory fig 2.7 • Module upgradability through flash memory. • Use SDRAM for code /data that require fast access and DRAM for the rest of the code/data. • See Listing 2.5 and Figure 2.8 for examples. 1/6/2023 17