- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI,
I have been trying to port an embedded sw to NIOSII. I have some division operations, array initializations, sprintf function calls in the code. I find that NIOS II compiler (processor core does not directly support division) is not providing built-in calls to division, memset/memcpy (as in array initialization, etc) or sprintf. Should the compiler not support these functionalities (mebe not sprintf..). Or am i missing some compiler or linker options..? Pl send suggestions.. Thanks, SunilLink Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
These items you mention are all supported. Division is emulated if not enabled in core (I believe this to be true but we enabled division). mem and str functions are all definitely present in the NIOS II Libraries.
Bill- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nios II supports 32 bit (and less) integer division when enabled and single precision floating point division if you add the custom instruction floating point unit.
The library functions you mentioned are all present.... in string.h, and stdio.h if I remember correctly.
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