From: clc5q AT cobra DOT cs DOT Virginia DOT EDU (Clark L. Coleman) Newsgroups: comp.os.msdos.djgpp Subject: Re: inline assembly and c struct Date: 3 Feb 2001 14:11:45 GMT Organization: University of Virginia Lines: 17 Message-ID: <95h3j1$frf$1@murdoch.acc.Virginia.EDU> References: <957ghs$kl$1 AT news DOT onet DOT pl> <959619$f3k$1 AT murdoch DOT acc DOT Virginia DOT EDU> <95f5mk$cug$1 AT news DOT onet DOT pl> NNTP-Posting-Host: cobra.cs.virginia.edu X-Trace: murdoch.acc.Virginia.EDU 981209505 16239 128.143.137.16 (3 Feb 2001 14:11:45 GMT) X-Complaints-To: abuse AT virginia DOT edu NNTP-Posting-Date: 3 Feb 2001 14:11:45 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In article <95f5mk$cug$1 AT news DOT onet DOT pl>, clusty wrote: >In article news:959619$f3k$1 AT murdoch DOT acc DOT Virginia DOT EDU , "Clark L. Coleman" >clc5q AT cobra DOT cs DOT Virginia DOT EDU>... wrote: >> In article <957ghs$kl$1 AT news DOT onet DOT pl>, aiur9 wrote: >> >How can I get a structure member offset from inline assembly >> >> Who says it has to be assembly? Why not just take the address of >> fields in C, using the "&" operator? > >no >I want compiler to print y_offset in my piece of inline assembly code. Could you answer my question: Why does it have to be inline assembly when it could be done in C code?