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

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

Re: [avr-gcc-list] use of GOTO statement


From: Royce Pereira
Subject: Re: [avr-gcc-list] use of GOTO statement
Date: Sun, 14 Aug 2005 10:27:26 +0530
User-agent: Opera M2/8.02 (Win32, build 7680)

hI,

On Sun, 14 Aug 2005 09:35:38 +0530, Russell Shaw <address@hidden> wrote:

Royce Pereira wrote:
Hi,
On Sun, 14 Aug 2005 06:18:20 +0530, Hugo González Monteverde <address@hidden> wrote:

Why exactly do you want to return to a different place? Looks like another, less complicated solution may be better. As Steve said, the standard way of having INT code affect non INT code is to set asynchronous flags (remember they should be volatile too) in the main() code...

In any case, I have never used goto myself and was wondering... I think it only allows jumping to a label in the same function... or is it a UNIXism of me?
 That is correct. You cant jump(GOTO) out of a function.
--Royce.

But you can longjmp().

Well, I've never used it, but probably this is a macro for inline assembly. Also one has to take care to correct the stack(while used inside a function to jump out of it).
--Royce
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/




reply via email to

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