# MIPS Using C and C++

[MIPS Documentation](https://asm-editor.specy.app/documentation/mips.md)

Web page: https://asm-editor.specy.app/documentation/mips/using-c

Compile C or C++, call simulator services through <sim.h>, and debug the generated MIPS assembly.

7 entries, each with its own page of markdown:

- [Using C and C++](https://asm-editor.specy.app/documentation/mips/using-c/overview.md): Create main.c for C, or main.cpp for C++, in a MIPS project.
- [Help while editing](https://asm-editor.specy.app/documentation/mips/using-c/editing-help.md): Type sim_ to see the simulator functions for this project, or press Ctrl+Space to open suggestions.
- [Compiling a source file](https://asm-editor.specy.app/documentation/mips/using-c/compiling.md): The Compile controls offer Clang or GCC and an optimization level.
- [Libraries and simulator services](https://asm-editor.specy.app/documentation/mips/using-c/libraries.md): Runtime support is supplied automatically.
- [Screen and device registers](https://asm-editor.specy.app/documentation/mips/using-c/screen-and-devices.md): Declare SIM_SCREEN outside any function, then assign colors to its array.
- [Following execution](https://asm-editor.specy.app/documentation/mips/using-c/following-execution.md): Matching colors connect source lines with their generated assembly.
- [Linking assembly Files](https://asm-editor.specy.app/documentation/mips/using-c/linking-project-files.md): Only the selected C or C++ source is compiled.
