This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

C

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?

Parents
  • 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.

Reply
  • 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.

Children