Re: Microcontroller Project



In article <1143494228.117311.162780@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
David L. Jones <altzone@xxxxxxxxx> wrote:
[....]
I'd then suggst you take a look at some more modern compilers perhaps.
Countless people use C on the 8051, I'm sure it's not that bad.

Lots of people eat tripe too. C isn't a very nice language at the best of
times. The ones for 8051s have to have all kinds of funny tricks in them
to make them work well.

[...]
You'll get dynamic stack allocation errors on most micros, it's not
that hard to avoid unless your program is doing something very strange.

The program doesn't need to be strange, it just needs to nest fairly deep,
include an interrupt or two and need a fair amount of variable space. The
Keil compiler-linker pair actually overlays the allocations for
noninterrupt code. Interrupt code can't be overlayed and hence uses up a
chunk of memory.

If you are new to the 8051, it is best to not do interrupt code for the
first few tries.

--
--
kensmith@xxxxxxxxx forging knowledge

.