Re: AVR IAR C Compiler

Do you have a question? Post it now! No Registration Necessary

Translate This Thread From English to

Threaded View

Quoted text here. Click to load it

Hold it right there.  You're writing a C function.  If it wants to
take values from other functions, put them in the argument list, not
in registers.

C is not assembler, so don't pretend otherwise.  One of the
differences is that you *have to* give up control over the CPU
registers, and leave them to the C compiler to work with.

You're fighting the C compiler instead of using it.  Don't.

--
Hans-Bernhard Broeker ( snipped-for-privacy@physik.rwth-aachen.de)
Even if all the snow were burnt, ashes would remain.

Re: AVR IAR C Compiler
Quoted text here. Click to load it

Big parameter list? Have you considered simply passing a pointer to a
structure?

Steve
http://www.fivetrees.com



Re: AVR IAR C Compiler
Quoted text here. Click to load it

Why not push these registers in your function before use?

--
A. P. Richelieu



Site Timeline