Re: Example Assembly

2020-01-09 Thread Joel Sherrill
Hi My somewhat brute force approach is to write a C function that does something very similar to what I want to do. In this case, make a to the same method. Be sure to make the method extern to your test method so GCC doesn't do any magic inlining for you. I would recommend compiling at -Os becau

Re: Example Assembly

2020-01-09 Thread Christian Mauderer
On 09/01/2020 13:58, richard.glos...@l3harris.com wrote: > Is anyone aware of an example of calling a ā€˜C’ function from assembly > for the LEON3 (SPARC assembly)? Maybe something like https://git.rtems.org/rtems/tree/cpukit/score/cpu/sparc/cpu_asm.S?id=362cf319d44e7e64987f12aa36ea030e6298c586#n6