Next:@encode, Up:Type Encoding [Contents][Index]
Unfortunately, historically GCC used to have a number of bugs in itsencoding code. The NeXT runtime expects GCC to emit type encodings inthis historical format (compatible with GCC-3.3), so when using theNeXT runtime, GCC will introduce on purpose a number of incorrectencodings:
enums are always encoded as ’i’ (int) even if they are actuallyunsigned or long.In addition to that, the NeXT runtime uses a different encoding forbitfields. It encodes them asb followed by the size, withouta bit offset or the underlying field type.