Hi,
I need to :
1. Inline an assembly code that modifies Stack pointer directly (__asm directive is not allowed to modify stack pointer) in a C++ file.
What is the best option? A function call to a label is not an option since I need to manually update Stack Pointer. I need to inline.
I read I can create SRC file. Can I create SRC from the C++ compiler ? if so what is the Directive/Flag? --SRC didn't work.
#prama asm was unrecognized pragma. perhaps because I'm not creating SRC.
Thanks.
What is SRC?
What core and errata are you talking about, please cite, the respondents here aren't psychic, and you are being far to vague and non-specific. Give an example where these needed to be applied to provide some use case context. ie if you don't muddle the LR/SP then the core explodes.
Chronic failures in the core are typically addressed by compiler code generators, and options, to resolve critical instruction sequences, or interactions, etc.
Add whatever functions you want into the startup_arch.s file, EXPORT the names you wish to call from C/C++ source code.