- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
In Altera NiosII Eclipse compiler, the enum type is defualt to 4 bytes in size. Is there any# pragma or compiler control that force the enum type size to 2 bytes? If not, is there any way to define an enum type as 2 bytes data type in altera? Thank you, oneplusoneLink Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I've never used it but GCC has the -fshort-enums option, which tells the compiler to make shorts out of your enums. Maybe it's worth to try it.... Philipp
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page