avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Is "noreturn" attribute still not supported?


From: Lin Gu
Subject: Re: [avr-gcc-list] Is "noreturn" attribute still not supported?
Date: Mon, 24 Jan 2005 01:24:53 -0500

On Sun, Jan 23, 2005 at 07:04:17PM -0500, Trampas wrote:
> When would you use the noreturn?
>
> Could you just specify function as inline?
>

I need to implement a function f() which does not
return. In another function g() I use inline assembly
code to JMP to f(). Though f() does not return,
it JMP to g() sooner or later, and g() JMP to f()     
again. Hence, if f() pushes registers, this
recursive execution will make stack overflow.

Inline functions, as far as I understand, are like
macros so they do not have their unique entry piont
where the assembly code in g() can JMP to.

lin
--
Lin Gu
University of Virginia


reply via email to

[Prev in Thread] Current Thread [Next in Thread]