The GNU compiler (mb-gcc) was built specifically for MicroBlaze and supports many of the GNU features.
Refer to the GNU source manual for applicable source support features.
Below are several examples of placing simple inline assembly commands with the main source code:
Other examples include:
This example passes the variable values "b" and "c" to the "add" instruction and returns the result into "a."