This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
dev:crosscompiler:interfaces [2019/07/11 19:20] – [Methods] ursgraf | dev:crosscompiler:interfaces [2019/07/11 19:34] (current) – [Methods] ursgraf | ||
---|---|---|---|
Line 73: | Line 73: | ||
=== Case 2 === | === Case 2 === | ||
If a class implements one interface with several methods or several interfaces -> in the type descriptor we place the address of a // | If a class implements one interface with several methods or several interfaces -> in the type descriptor we place the address of a // | ||
- | + | The // | |
- | The // | + | |
Important: For jumping into the interface method the LR cannot be used anymore, because the LR contains the address of the caller and the LR was not saved so far. This happens only at the start of the interface method. For practical implementation see notes in the code generator for the desired architecture, | Important: For jumping into the interface method the LR cannot be used anymore, because the LR contains the address of the caller and the LR was not saved so far. This happens only at the start of the interface method. For practical implementation see notes in the code generator for the desired architecture, | ||