"union"

Discussion in 'C Programming' started by usr.root@gmail.com, Sep 22, 2005.

  1. Guest

    hi,who knows how does the compiler work after it see the "union" word
    in your code .
     
    , Sep 22, 2005
    #1
    1. Advertising

  2. In article <>,
    <> wrote:
    >hi,who knows how does the compiler work after it see the "union" word
    >in your code .


    That would depend on the compiler implementation. There is more than
    one to parse code. Some compilers try to minimize passes over the code,
    and other compilers prefer the simplicity of first checking syntax and
    then doing semantic analysis.

    The method for parsing a union is almost the same analyzing a
    structure, but before each member, the variable that is recording the
    offset from the beginning of the object is reset to 0.
    --
    The ordering of results sorted by date is approximate.
     
    Walter Roberson, Sep 22, 2005
    #2
    1. Advertising

  3. Chris Dollin Guest

    wrote:

    > hi,who knows how does the compiler work after it see the "union" word
    > in your code .


    Why do you care how the compiler "works" in this case? Or did
    you mean to ask what "union" /means/ in C?

    --
    Chris "electric hedgehog" Dollin
    The software engineer's song: "who knows where the time goes".
     
    Chris Dollin, Sep 22, 2005
    #3
  4. Mabden Guest

    <> wrote in message
    news:...
    > hi,who knows how does the compiler work after it see the "union" word
    > in your code .


    It tends to work slower. It wants more paid holidays and time off for
    "family issues". It wants more frequent pay raises. It sends
    representatives to board meetings, and demand better working conditions.
    And it charges all the subroutines a small stipend at each invocation,
    then drives around in a big car with a fancy new watch.

    --
    Mabden
     
    Mabden, Sep 22, 2005
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Marco Ippolito
    Replies:
    2
    Views:
    3,212
    Marco Ippolito
    May 19, 2004
  2. goli

    SQL UNION query in Java

    goli, Apr 4, 2005, in forum: Java
    Replies:
    4
    Views:
    2,640
  3. =?ISO-8859-1?Q?Thomas_G=E4rtner?=

    JNI working with jvalue (union)

    =?ISO-8859-1?Q?Thomas_G=E4rtner?=, Sep 19, 2005, in forum: Java
    Replies:
    3
    Views:
    3,414
    Roedy Green
    Sep 20, 2005
  4. Matt Garman
    Replies:
    1
    Views:
    677
    Matt Garman
    Apr 25, 2004
  5. Peter Dunker

    union in struct without union name

    Peter Dunker, Apr 26, 2004, in forum: C Programming
    Replies:
    2
    Views:
    889
    Chris Torek
    Apr 26, 2004
Loading...

Share This Page