User Profile

Collapse

Profile Sidebar

Collapse
kp7796
kp7796
Last Activity: Aug 27 '09, 11:10 AM
Joined: Aug 5 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • kp7796
    started a topic compilations
    in C

    compilations

    Hello,
    I have some confusion about compilations process in embedded system. Can please explain compilations process up to loader
    See more | Go to post

  • kp7796
    started a topic Interview Question - The Waiter

    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...
    See more | Go to post

  • kp7796
    started a topic What is synchronous and asynchronous function?
    in C

    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?
    See more | Go to post

  • kp7796
    replied to What is Reentrant function?
    in C
    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)
    {
    ...
    See more | Go to post

    Leave a comment:


  • kp7796
    replied to What is Reentrant function?
    in C
    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;

    }


    ...
    See more | Go to post

    Leave a comment:


  • kp7796
    replied to What is Reentrant function?
    in C
    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”
    See more | Go to post

    Leave a comment:


  • kp7796
    replied to What is Reentrant function?
    in C
    Can you please give the complete meaning? I’m not able understand the meaning of the discretion.
    See more | Go to post

    Leave a comment:


  • kp7796
    started a topic What is Reentrant function?
    in C

    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 "...
    See more | Go to post
No activity results to display
Show More
Working...