On Sunday 04 October 2009 22:34, Carl Hamilton wrote:
> I can't say why the compiler has thrown out their bodies (I haven't looked
> at the code that closely), but the "while" loops in both functions will
> never exit.
Well that is enough reason for the compiler to throw away the bodies.
If a func
I can't say why the compiler has thrown out their bodies (I haven't looked
at the code that closely), but the "while" loops in both functions will
never exit. Since you have declared "icnt" as unsigned, "icnt + 1" will
always be true. I'm surprised the the compiler didn't issue a warning along
thes
Hello all,
I am sorry, but maybe somebody has expierience why the following code is
deleted during optimization. I have two functions for printing of numbers
(uart_puts() just send string to UART) :
void uart_putux( unsigned int aInt)
{
unsigned char buf[5];
unsigned char icnt = 4;
buf[ic