Dave, If I understand you (now more correctly): because byte packing is default, you want a vanilla cast (without __packed prefix) to be treated as byte packed cast. How would a programmer then indicate a cast to a vanilla (not packed) pointer? If the compiler always assumes byte packed no matter what, arguably the compiler cannot take advantage of the faster method of dealing with composite objects. Jaya --- In lpc2000@yahoogroups.com, "dsidlauskas1" <dsidlauskas@...> wrote: > > Jaya, > > I don't think I'm asking it to connect the two statements. > > What I'm expecting it to do is to recognize that buf is a byte packed > object (the defalt for the compler)and when casting byte packed > objects the compiler should cast them to other byte packed objects. > > in otherwords; > > char buf[10]; > int ip*; > > ip = (int *)&buf[5]; > > should be treated by the compiler as: > > ip = (__packed int *)&buf[5]; > > and this is because char buf[10] is a byte packed object for this > compiler. > > Dave
Message
Re: For C Experts
2006-03-31 by jayasooriah
Attachments
- No local attachments were found for this message.