Hello,
I have some confusion about compilations process in embedded system. Can please explain compilations process up to loader
User Profile
Collapse
-
Interview Question - The Waiter
Three men in a cafe order a meal the total cost of which is $15. They each contribute $5. The waiter takes the money to the chef who recognizes the three as friends and asks the waiter to return $5 to the men.
The waiter is not only poor at mathematics but dishonest and instead of going to the trouble of splitting the $5 between the three he simply gives them $1 each and pockets the remaining $2 for himself.
Now, each... -
What is synchronous and asynchronous function?
What is synchronous function?
What is asynchronous function?
Unsigned char a=0;
Void function (void ){
Unsigned char Flag;
Flag=0
If (a==1){
Flag=1;
}
Return (Flag)
}
EI()__external interrupt
{
a=1;
}
Can you please let me know above function is synchronous or asynchronous? -
function reentrancy
1. Must hold no static (or global) non-constant data.
int GLOBAL /* define Global variable */
int Function 1(void)
{
int local ; /* define local variable */
local= GLOBAL; /* read the global variable */
local+=1;
}
int Function 2 (void)
{
... -
1. Must hold no static (or global) non-constant data.
int GLOBAL /* define Global variable */
int Function 1(void)
{
int local ; /* define local variable */
local= GLOBAL; /* read the global variable */
local+=1;
}
...Leave a comment:
-
Functions should be writing any global variable than only the function called as “reentrant ”.
Global variable is used in a function but variable value is not modified its read only this function “not reentrant”
Please let me know what is the meaning of mush hold no static and global why they are mentioned “Must hold no static (or global) non-constant data”Leave a comment:
-
Can you please give the complete meaning? I’m not able understand the meaning of the discretion.Leave a comment:
-
What is Reentrant function?
I had some information from internet but I’m unable to get the meaning.
Please find the below mentioned description and please let me know if (common English) are u able to get.
Must hold no static (or global) non-constant data.
True only if shared variable changes address during execution or when program is executed again. Absolute addresses of constant globals are safe unless they are changed from "...
No activity results to display
Show More
Leave a comment: