Sunday, September 30, 2012

Install virtual Linux(fedora14-i386) In Windows XP host

Installing Linux host(fedora 14) in Windows XP guest system with following configuration:

 1024+256 MB RAM
 80 GB HDD


Single step compilation of a program

Steps Of Program Compilation In Respective Order :

1.Pre-processor
2.Translator
3.Assembler
4.Linker
5.Loader

1. Pre - Processor :

--> I st Stage In Multistage Compilation.
--> It Works Directly On Source File.
--> Converts Input Source File ('.c' etc)  To Expanded Source File('.i') .

                      Where '.i' File Is A Source File ,Which Is :


Native Compiler Vs Cross Compiler

If  A Compiler Helps To Convert The Source Code To Binary Code , Where The 'Target CPU(CPU Where The Binary Code Is Actually Meant To Be Used)'  And  'Origin CPU (CPU Where The Code Has Been Generated And Compiled' Are Same , Is Called Native Compiler.Other Wise Its Understood That We Are Using A Cross Compiler .

Examples Of Native Compilers:
TURBO 'C'


Thursday, September 27, 2012

Why 'C' or a high level language In Embedded System Programming?

'C' Is A High Level Language Which 'Processor/CPU' Can Not Understand . But Many Embedded Programmers
Use 'C' In Embedded Systems , Why?

If A Code Is Written In A Specific Instruction Code From An Instruction Set Which Is Understandable Only By The Specific Processor/CPU Then It Causes A Problem When There Is A Need For Migration Of Hardware i.e; If CPU Has To BE Replaced By A More Sophisticated CPU The Code Has To Be Rewritten Using The Instruction Set Supported By The New CPU.


What Is An Embedded System?

An Embedded System Is A Subsystem , Actually Designed To Support A Real Time System.
Embedded System Is Embedded In A Bigger System .
For Example:

A "Temperature Sensor" Used To Sense Temperature In The Room And Regulate The Blower Of The Air Conditioner Can be Considered As An Embedded System.

LIMITATIONS TO DESIGN AN EMBEDDED SYSTEM :