This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I want to directly access CPU Registers R4 to R10 in my program, is there any possibilities
Of course, but exactly why do you need to do that? The compiler has its idea of what is going on with the registers and if that conflicts with what you are doing, there will be trouble. In particular, any function is required to return with R4-R10 unchanged.
You can of course write code directly for the assembler and interface it with the compiler. But there are details you have to deal with.
I am working on a ECC logic i need compilation process to execute in a quicker manner so i want to work directly with CPU Registers i want to try the possibilities to further proceed or not
First do it in C and then examine the code produced by the compiler (with optimization). Then you have to decide if you are better than the compiler and if the performance gain is worth the effort.
It usually isn't.
the code is writtern in c , now i want to try it in assembly i not able to find any respective document to proceed with it.
And for the code writtern in c (what do you mean by optimization, is it regarding the clock speed)
I don't know which compiler you are using but they all have some control over how much, or any, optimization (for speed and/or size) they perform on the code. Read the documentation.
There will also be documentation on the interface between C and assembly language functions.
Hi David,
I am using MSP430FR5969 microcontroller and the compiler version is TIv20.2.2.LTS
As for as possible i have searched the TI website i not able to find a document regarding the interface between C and assembly language functions can you provide me the link
I use GCC so cannot help you with the specifics of your compiler but I did look up the manual and it has a section on the interface between C and assembly.
Maybe SLAA140A Mixing C and Assembler With MSP430 MCUs (www.ti.com/.../slaa140a.pdf) can help.
**Attention** This is a public forum