more example blackfin code using the e-unittest framework
Post on 19-Dec-2015
221 views
TRANSCRIPT
Using E-TDD environment
• Using the C++ tests, build the ASM tests (cut and paste is all that is needed)
• Build the ASM stubs (Makes sure that you can load the load into the processor
• Test the code stub – program will run but fail the tests as only stubs
• Build the code
• Test the code
Build the stub 1Find the name mangling needed
• Just build the code
• VDSP will tell you the necessary name-mangled names
• Cut and paste the names
Build the stub 2
• These examples use an alternate approach to returning to C++, not RTS
• This approach using LINK and UNLINK is required when assembly code subroutine call assembly language subroutines
Need to learn to READAnd listen to assembler
That semicolon is notthe one that was missing
There is one semicolon too manyin the define statement
Wrong method
Incoming parameters – come in R0Outgoing parameters – go in R0
Return values – go in R0
Same problem on the MIPS