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?
So far my little C program has consumed 3K of the 4K limitation so I am VERY dissappointed with the efficiencies I see so far.
You may well find that a small program that occupies 3k written in 'C' would occupy 300 bytes an assembly. That doesn't mean that a 600 byte assembly program would occupy 6k in 'C'. If you don't understand why, ask and I'll explain.
Unless you are pushing your 8051 derivative to the limit in terms of code size or speed than 'C' is almost certainly a good choice. I would suggest you persist with it but you will have to accept that you will have to buy the real version of the toolchain.
The code size limit you are approaching is designed, for obvious reasons, to prevent you from doing any serious work with it.