FreeRTOS port

XCore Project reviews, ideas, videos and proposals.
User avatar
akp
XCore Expert
Posts: 578
Joined: Thu Nov 26, 2015 11:47 pm

Post by akp »

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.


User avatar
akp
XCore Expert
Posts: 578
Joined: Thu Nov 26, 2015 11:47 pm

Post by akp »

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...
mbruno
Posts: 11
Joined: Thu Aug 24, 2017 2:48 pm

Post by mbruno »

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.
Post Reply