Embedded Linux questions

Victor Odhner plug-devel@lists.PLUG.phoenix.az.us
Thu Nov 1 17:00:02 2001


Alan Dayley wrote:
> What I mean by context switching is the ability
> to swap stacks and directly load CPU registers
> as the "kernel" contained within the app
> switches it's tasks.

Ow.  I inherited one of those suckers.
Handled multiple threads within a single
continuous factory-control process.

You'll remember I have grey hair.   :-)

It bombed randomly, every few hours.
I had the thing loaded down with code
to snapshot every malloc, every function
entry, ...

Turned out that the compiler's optimizer
was changing the layout of the stack frame
that we were saving.  Turned off the
optimizer, it ran real nice.

Vic