Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[General] embedded programming

Status
Not open for further replies.

vikasb

Newbie level 3
Joined
Aug 21, 2013
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
20
1) Is it preferable to use global variable in embedded system programming? If yes why or if no why not?

2) What is the difference from programming perspective between computer processor program and embedded system program?
 

1) It depends upon the application. since you will be having multiple files, mostly global variables will be used.

2) Computer processor program can be used as general purpose program. But, embedded system program will be designed for an specific application and so you can't port the code for any other purpose or application.
 

1) Is it preferable to use global variable in embedded system programming? If yes why or if no why not?

2) What is the difference from programming perspective between computer processor program and embedded system program?

1) Any variable type supported by your programming language can be used in ES. If you need some vales to be involved for all the functions in your application you can use global variable.
2) A computer processor can be anything related to be used by PC. Whereas an embedded application is a standalone specific application.

If you are program in a compiler which can only run on PC is a computer programming.
If your program is converted into an format which can be run on some other specific environment specifically an another CPU.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top