diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2025-03-18 21:30:06 +0100 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-03-19 03:15:16 +0100 |
| commit | 03123916e55a9c0c8b66f748a62b7a4a64203535 (patch) | |
| tree | 0f131e75bc299b5c567e9e3f30ba3b9b7fff70d3 /src/main.zig | |
| parent | 5105c3c7fa46969dc731b7447415436fd7572e87 (diff) | |
| download | zig-03123916e55a9c0c8b66f748a62b7a4a64203535.tar.gz zig-03123916e55a9c0c8b66f748a62b7a4a64203535.zip | |
compiler: Support more GCC code models and fix the mapping to LLVM code models.
Closes #22517.
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/main.zig b/src/main.zig index 356808804a..865ce78b47 100644 --- a/src/main.zig +++ b/src/main.zig @@ -499,9 +499,18 @@ const usage_build_generic = \\ hex (planned feature) Intel IHEX \\ raw (planned feature) Dump machine code directly \\ -mcpu [cpu] Specify target CPU and feature set - \\ -mcmodel=[default|tiny| Limit range of code and data virtual addresses - \\ small|kernel| - \\ medium|large] + \\ -mcmodel=[model] Limit range of code and data virtual addresses + \\ default + \\ extreme + \\ kernel + \\ large + \\ medany + \\ medium + \\ medlow + \\ medmid + \\ normal + \\ small + \\ tiny \\ -mred-zone Force-enable the "red-zone" \\ -mno-red-zone Force-disable the "red-zone" \\ -fomit-frame-pointer Omit the stack frame pointer |
