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

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

[avr-gcc-list] problem with debbuggin with AVRStudio 4.12 and WinAvr


From: antonioromano
Subject: [avr-gcc-list] problem with debbuggin with AVRStudio 4.12 and WinAvr
Date: 15 Nov 2005 19:58:23 -0000

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 
-------------------------------------------------------------------------





reply via email to

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