Chapter 7 Library Functions
This chapter describes the library functions used in actual programming. All of the functions are included in libleo_d.a (for debugging use) and libleo.a (for use in the final master). When using 64DD-related functions, always specify the following at compile time.
[NW]
-lleo_d -lultra_d (in debugging stage) OR -lleo -lultra_rom (in final stage) |
[PC]
-lleo_d -lgultra_d (in debugging stage) OR -lleo -lgultra_rom (in final stage) |
Furthermore, include the header file PR/leo.h in addition to ultra64.h. (Please be careful to use the proper order. In particular, be sure to link libleo*.a before linking libultra*.a.)
Note: Because libleo_d.a includes debugging information, it is larger and inferior in performance to libleo.a,which contains no debugging information. When submitting a master, please be sure to use libleo.a (For information on master submission, please see "Chapter 5, The Development Process.")
64DD-related functions are grouped into the following 4 classifications.
7.7 Disk Startup and Game Pak ROM Startup
7.8 Retry and Error Correction