FreeRTOS port
-
- XCore Expert
- Posts: 580
- Joined: Thu Nov 26, 2015 11:47 pm
Ah, I see why the ldd/std didn't work for you. Thank you for the update. Now I will have to check why ldd/std works for me. I am hoping to migrate to your new single core code soon but I've been barreling along with something else.
-
- XCore Expert
- Posts: 580
- Joined: Thu Nov 26, 2015 11:47 pm
OK, I found an exception caused by using std/ldd. It seems like the code XCC compiles from source keeps the stack pointer double word aligned, and when I write assembly I can keep it double word aligned, but not so with the pre-compiled C library for some reason. I suspect it's compiled for XS1 but I don't know. It would be more efficient if it were compiled for XS2 if it isn't already...
-
- Member
- Posts: 11
- Joined: Thu Aug 24, 2017 2:48 pm
Yes, it would be nice if everything was guaranteed to keep the stack pointer double word aligned. But unfortunately since that cannot be guaranteed then it is just not safe for us to use the ldd/std instructions.