http://ftp.cdut.edu.cn/pub3/uncate_doc/OReilly%20-%20Programming%20Embedded%20Systems%20in%20C%20and%20C++.chm
speedoak said:I use C to develop hardware driver for a long time, I used to think C++ is not efficient to develop low level driver, but recently I found that by using C++ to develop driver is very good and interesting, anybody can recommend some C++ application notes or book on C++ embedded programming?? thanks
terka said:Hi
Have you a tutorial for learn to use CCS PIC C compiler??
Thank you
devennan said:irfansyah
also declare local variables inside if() conditions so that only if actualy required are local variables declared and take space from heap
SphinX said:terka said:Hi
Have you a tutorial for learn to use CCS PIC C compiler??
Thank you
An Introduction to Programming The Microchip PIC in CCS C
h**p://
Bye
All too often C and especially assembly programs have one huge
module with all of the variable definitions. Though it may seem
nice to organize variables in a common spot, the peril is these are
all then global in scope. Global variables are responsible for much
undebuggable code, reentrancy problems, global warming and male
pattern baldness. Avoid them!
Real time code may occasionally require a few - and only a few -
global variables to insure reasonable response to external events.
Every global variable must be approved by the project manager.
When globals are used, put all of them into a single module. They
are so problematic that it’s best to clearly identify the sin via the
name globals.c or globals.asm.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?