Not applicable
Apr 09, 2014
12:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 09, 2014
12:30 AM
Hi,
I'm using a XE167 at 80Mhz. With Tasking EDE C compiler
And I 'm having the following problem:
This piece of code takes 4.5uS of time to execute and that is too slow.
rotationangle+=360000l;
rotationangle%=360000l;
angle=(rotationangle / 10);
state=angle / 6000l;
Is there a way to speedup this code with the MAC functions of the processor.
hope you can help.
I'm using a XE167 at 80Mhz. With Tasking EDE C compiler
And I 'm having the following problem:
This piece of code takes 4.5uS of time to execute and that is too slow.
rotationangle+=360000l;
rotationangle%=360000l;
angle=(rotationangle / 10);
state=angle / 6000l;
Is there a way to speedup this code with the MAC functions of the processor.
hope you can help.
- Tags:
- IFX
1 Reply
Not applicable
Aug 07, 2014
06:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 07, 2014
06:53 AM
you should try to avoid 32bit variables in a 16bit architecture if you are concern about speed.