"union"

U

usr.root

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

Walter Roberson

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

Chris Dollin

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

Mabden

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,479
Members
44,900
Latest member
Nell636132

Latest Threads

Top