We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I was hoping to find on-line manuals that I could print and read on the john. So far no luck. But what I really need is how to declare variables in C.
For example, I have a sample code that has the statement:
unsigned char
and
unsigned long
What do these mean and do they limit the declaration to integers. What do i declare if I want a floating point?
Also, someone told me I cant do floating point with a Keil Compiler because of licensing issues (I got my copy from Silicon Labs and have just registered it). I will eventually need to do trig functions. What do i have to get (buy) to complete my project?
If you have 1000 bytes of ASM and 4000 bytes with C Either you are a master ASM programmer, or a Poor Embedded C programmer. That or are using a poor compiler.
Do not take it Personal. Coding for an a limited memory Embedded System is not the same as for the desk top. Embedded C programs get large because statements that produce a large amount of code look the same as those that do not. Like using int as a loop counter (less than 255). You would not use a 16 bit signed value in ASM, but many pepper their C code with it. Printing with printf() that is over a 1K right there. Large Memory model? Click And on and on.
Either you are a master ASM programmer, or a Poor Embedded C programmer. That or are using a poor compiler.
Or he forgot to turn on the compiler optimizations, used the wrong memory model, etc. But I guess that would fall under "inexperienced embedded C programmer".