CMPUT 229 - Computer Organization and Architecture I

Data Directives

229 RISC-V Examples - Data Directives

Examples of Code Patterns and Structure in RISC-V - Data Section Directives

Data Section Directives

The data section is used to allocate static space for variables. While there are many directives for the data section, below are some of the most commonly used ones. RARS has a help menu that lists all of the directives. Skim through it for future reference.

Here is a list of common directives:

Link to a file containing all of the above directives