Skip to content

Degamisu/N64-Library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

N64 Library

PLEASE SEE details.md FOR MORE INFORMATION

This repository contains a library for the Nintendo 64 (N64) compiler. It's designed to assist developers working on N64 projects.

Table of Contents

logo

  1. Introduction
  2. File Structure
  3. Installation
  4. Usage
  5. Documentation
  6. Examples
  7. Contributing
  8. License

Introduction

The N64 Library is a comprehensive toolset for N64 developers. It simplifies the development process by providing pre-built functions and utilities to work with the N64 architecture.

File Structure

The file structure is organized as follows:

  • src/: Contains the source code for the library.
  • include/: Includes header files for the library.
  • examples/: Demonstrates how to use the library with practical examples.
  • docs/: Contains documentation for the library.

Installation

Tested

  1. Compile C Source Code (For n64library.c):
    • For a basic compilation, you can use the following command:
    gcc -c src/n64library.c -o build/n64library.o -Iinclude
    
    This command compiles n64library.c and produces an object file n64library.o in the build directory. (Tested)

Untested

  1. Create a Static Library:

    • To create a static library from the object file, you can use the following command:
    ar rcs lib/libn64library.a build/n64library.o
    

    This command creates a static library file libn64library.a in the lib directory.

  2. Create a Shared Library (Optional):

    • If you want to create a shared library (dynamic link library), you can use a command like this:
    gcc -shared -o lib/libn64library.so build/n64library.o
    

    This command creates a shared library file libn64library.so in the lib directory.

  3. Compile Example Programs:

    • To compile your example programs, you can use commands like this:
    gcc examples/example1.c -o build/example1 -I include -L lib -ln64library
    

    This command compiles example1.c and links it with your library.

  4. Run Example Programs:

    • After compilation, you can run your example programs:
    ./build/example1
    

Usage

To use the N64 Library in your projects:

  1. Include the necessary header files from the include/ directory.
  2. Link your project with the compiled library from the build/ directory.
  3. Refer to the documentation for function details and usage examples.

Documentation

For detailed information, refer to the documentation in the docs/ directory. It provides a comprehensive guide to using the library's functions and features.

Examples

The examples/ directory contains practical examples that demonstrate how to use the library in real projects. These examples cover various use cases and help you get started quickly.

Contributing

Contributions are welcome! If you'd like to contribute to the N64 Library, please follow these guidelines:

  1. Fork this repository.
  2. Make your changes.
  3. Create a pull request.

License

This project is licensed under the MIT License.


About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published