|Re: Instruct XDC to treat enums as integer [message #512397 is a reply to message #511668]
||Thu, 04 February 2010 22:12
| Sasha Slijepcevic
Registered: July 2009
The whole 'shortEnums' functionality is added because of https://bugs.eclipse.org/bugs/show_bug.cgi?id=289018.|
By default, TI's Arm compiler packs enums. That can be verified by looking into the section $build.attributes, and decoding it as specified in the section 18.104.22.168 The procedure call-related attributes, in http://infocenter.arm.com/help/topic/com.arm.doc.ihi0045c/IH I0045C_ABI_addenda.pdf.
The TI Arm compiler has the option --enum_type=unpacked,int,packed, designate enum type (Default is packed for EABI). If we were passing that option for our M3 target, shortEnum would be false. I don't know if there is a good reason that we should, but the linker would certainly complain if the object files with different enum options were linked together. That means that the different shortEnum options require two different M3 targets.
[Updated on: Thu, 04 February 2010 22:53]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02830 seconds