Tài liệu Functions in MIPS

Thảo luận trong 'Căn Bản' bắt đầu bởi Thúy Viết Bài, 5/12/13.

  1. Thúy Viết Bài

    Thành viên vàng

    Bài viết:
    198,891
    Được thích:
    167
    Điểm thành tích:
    0
    Xu:
    0Xu
    Function calls are relatively simple in a high-level language, but actually involve multiple steps and instructions at the assembly level.
    —The program’s flow of control must be changed.
    —Arguments and returning values are passed back and forth.
    —Local variables can be allocated and destroyed.
    Today we’ll see how these issues are handled in the MIPS architecture.
    —There are new instructions for calling functions.
    —Conventions are used for sharing registers between functions.
    —Functions can make good use of a stack in memory.
     

    Các file đính kèm:

Đang tải...
Chủ đề tương tự
  1. Thúy Viết Bài
    Trả lời:
    0
    Xem:
    440