Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4923

where the global and local variables are saved in memory of Aurix Micocontroller

$
0
0
I work with the Aurix MUC, I tried to read the contents of the memory after the execution of a program, to see what he wrote in the memoir

I noticed that when I use a global variable in a function, the new value of this global variable after processing in the function, is not written in memory.

Here is an example:

int a = 100;

void plus (int a)

{

a = a + 17;

}

int main (void)

{

plus(a);

return 0;

}

when I display the contents of the memory I find the value 100 of a

and I do...

where the global and local variables are saved in memory of Aurix Micocontroller

Viewing all articles
Browse latest Browse all 4923

Trending Articles