View previous topic :: View next topic |
Author |
Message |
mfeinstein
Joined: 05 Jul 2012 Posts: 35
|
Extended set extension and Indexed Addressing |
Posted: Wed Nov 14, 2012 7:30 pm |
|
|
Hi,
I am wondering, are there any "pros and cons" regarding the "Extended set extension and Indexed Addressing"?
What are the reasons to leave it enabled or disabled?
Thanks! |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Nov 14, 2012 7:49 pm |
|
|
Compile a program and look at the warnings:
Quote: | >>> Warning 227 "PCH_Test.c" Line 85(1,1): Feature not supported XINST |
|
|
|
mfeinstein
Joined: 05 Jul 2012 Posts: 35
|
|
Posted: Wed Nov 14, 2012 8:33 pm |
|
|
Sorry PCM Programmer, I did not understand your answer...could you make it more clear please? |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
mfeinstein
Joined: 05 Jul 2012 Posts: 35
|
|
Posted: Wed Nov 14, 2012 9:21 pm |
|
|
So why they give you the option to enable it, if the compiler doesnt support it? |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19513
|
|
Posted: Thu Nov 15, 2012 2:10 am |
|
|
Because you could (for instance), write a CCS bootloader (being very careful what instructions you use, to prevent this causing problems), which then loads a main program written with something else, which requires XINST.
Best Wishes |
|
|
mfeinstein
Joined: 05 Jul 2012 Posts: 35
|
|
Posted: Thu Nov 15, 2012 9:35 am |
|
|
Oh..now it makes sense ;)
Thanks Ttelmah |
|
|
|