Hi,
I built the following code with AVRStudio 4.12, WinAvr 20050214, AVR Gcc
3.4.3 and AVR libc 1.2.3 and debbugging with GDB 6.1 step by step.
Main regularly calls somma(e,r) . But after it's ended the control flow does
not return to main but after its last instruction ( exit()).
I thank you in advance.
Antonio
#include <avr/io.h>
int somma(int a, int b)
{
int c;
c=a+b;
return c;
}
int main ()
{
int r = 0;
r = somma(e,r);
r=r+1;
return r;
}
-------------------------------------------------------------------------
Visita http://domini.interfree.it, il sito di Interfree dove trovare
soluzioni semplici e complete che soddisfano le tue esigenze in Internet,
ecco due esempi di offerte:
- Registrazione Dominio: un dominio con 1 MB di spazio disco + 2 caselle
email a soli 18,59 euro
- MioDominio: un dominio con 20 MB di spazio disco + 5 caselle email
a soli 51,13 euro
Vieni a trovarci!
Lo Staff di Interfree
-------------------------------------------------------------------------
_______________________________________________
AVR-GCC-list mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list