Skip to content

Commit

Permalink
Add __riscv_cmodel_large define for large code model
Browse files Browse the repository at this point in the history
With riscv-non-isa/riscv-elf-psabi-doc#388
landed it makes sense to have a define for the large code model for
consistency with medany and medlow.
  • Loading branch information
asb committed Sep 10, 2024
1 parent e57d616 commit 06536da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/c-api.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ For example:
|*Name* |*Value* |*When defined*
|`+__riscv_cmodel_medlow+` |1 |Defined if using `medlow` code model.
|`+__riscv_cmodel_medany+` |1 |Defined if using `medany` code model.
|`+__riscv_cmodel_large+` |1 |Defined if using `large` code model.
|===

=== Deprecated Preprocessor Definitions
Expand Down

0 comments on commit 06536da

Please sign in to comment.