1 / 30

Friday’s lecture again

Friday’s lecture again. Using E-TDD environment. Build the tests you want to pass Build the code Test the code. Using E-TDD environment. Using the C++ tests, build the ASM tests (cut and paste is all that is needed)

Download Presentation

Friday’s lecture again

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Friday’s lecture again

  2. Using E-TDD environment • Build the tests you want to pass • Build the code • Test the code

  3. 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

  4. 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

  5. Build the stub 2

  6. Expect error messages But not these ones Code review Missing a ; at end of line

  7. Need to learn to READ And listen to assembler That semicolon is notthe one that was missing There is one semicolon too many in the define statement

  8. Less errors But I am still notlistening to the assembler

  9. Look on reference sheet R0 *= R1; Page 2, column 3

  10. Assembled But failed tests What of GS is happening

  11. Build the ASM test by cut-and-paste

  12. Stubs assemble But unexpected messages

  13. Build the ASM test by cut-and-paste CORRECTLY

  14. Wrong method Incoming parameters – come in R0 Outgoing parameters – go in R0 Return values – go in R0 Same problem on the MIPS

More Related