Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > "union"

Reply
Thread Tools

"union"

 
 
usr.root@gmail.com
Guest
Posts: n/a
 
      09-22-2005
hi,who knows how does the compiler work after it see the "union" word
in your code .

 
Reply With Quote
 
 
 
 
Walter Roberson
Guest
Posts: n/a
 
      09-22-2005
In article <(E-Mail Removed). com>,
http://www.velocityreviews.com/forums/(E-Mail Removed) <(E-Mail Removed)> 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.
 
Reply With Quote
 
 
 
 
Chris Dollin
Guest
Posts: n/a
 
      09-22-2005
(E-Mail Removed) 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".
 
Reply With Quote
 
Mabden
Guest
Posts: n/a
 
      09-22-2005
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ups.com...
> 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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments