Skip to content

Commit

Permalink
specs: Add option to print memory usage
Browse files Browse the repository at this point in the history
Also synced all the specs with upstream.

Implements #398.
  • Loading branch information
hankertrix committed Aug 30, 2024
1 parent 65b304e commit d5c93a1
Show file tree
Hide file tree
Showing 17 changed files with 310 additions and 49 deletions.
22 changes: 19 additions & 3 deletions avr-specs/avr-atmega1280.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,37 @@
"arch": "avr",
"atomic-cas": false,
"cpu": "atmega1280",
"crt-objects-fallback": "false",
"data-layout": "e-P1-p:16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8",
"eh-frame-header": false,
"exe-suffix": ".elf",
"late-link-args": {
"gcc": [
"gnu-cc": [
"-lgcc"
],
"gnu-lld-cc": [
"-lgcc"
]
},
"linker": "avr-gcc",
"linker-flavor": "gnu-cc",
"llvm-target": "avr-unknown-unknown",
"max-atomic-width": 8,
"metadata": {
"description": null,
"host_tools": null,
"std": null,
"tier": null
},
"no-default-libraries": false,
"pre-link-args": {
"gcc": [
"-mmcu=atmega1280"
"gnu-cc": [
"-mmcu=atmega1280",
"-Wl,--as-needed,--print-memory-usage"
],
"gnu-lld-cc": [
"-mmcu=atmega1280",
"-Wl,--as-needed,--print-memory-usage"
]
},
"relocation-model": "static",
Expand Down
22 changes: 19 additions & 3 deletions avr-specs/avr-atmega1284p.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,37 @@
"arch": "avr",
"atomic-cas": false,
"cpu": "atmega1284p",
"crt-objects-fallback": "false",
"data-layout": "e-P1-p:16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8",
"eh-frame-header": false,
"exe-suffix": ".elf",
"late-link-args": {
"gcc": [
"gnu-cc": [
"-lgcc"
],
"gnu-lld-cc": [
"-lgcc"
]
},
"linker": "avr-gcc",
"linker-flavor": "gnu-cc",
"llvm-target": "avr-unknown-unknown",
"max-atomic-width": 8,
"metadata": {
"description": null,
"host_tools": null,
"std": null,
"tier": null
},
"no-default-libraries": false,
"pre-link-args": {
"gcc": [
"-mmcu=atmega1284p"
"gnu-cc": [
"-mmcu=atmega1284p",
"-Wl,--as-needed,--print-memory-usage"
],
"gnu-lld-cc": [
"-mmcu=atmega1284p",
"-Wl,--as-needed,--print-memory-usage"
]
},
"relocation-model": "static",
Expand Down
22 changes: 19 additions & 3 deletions avr-specs/avr-atmega128a.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,37 @@
"arch": "avr",
"atomic-cas": false,
"cpu": "atmega128a",
"crt-objects-fallback": "false",
"data-layout": "e-P1-p:16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8",
"eh-frame-header": false,
"exe-suffix": ".elf",
"late-link-args": {
"gcc": [
"gnu-cc": [
"-lgcc"
],
"gnu-lld-cc": [
"-lgcc"
]
},
"linker": "avr-gcc",
"linker-flavor": "gnu-cc",
"llvm-target": "avr-unknown-unknown",
"max-atomic-width": 8,
"metadata": {
"description": null,
"host_tools": null,
"std": null,
"tier": null
},
"no-default-libraries": false,
"pre-link-args": {
"gcc": [
"-mmcu=atmega128a"
"gnu-cc": [
"-mmcu=atmega128a",
"-Wl,--as-needed,--print-memory-usage"
],
"gnu-lld-cc": [
"-mmcu=atmega128a",
"-Wl,--as-needed,--print-memory-usage"
]
},
"relocation-model": "static",
Expand Down
22 changes: 19 additions & 3 deletions avr-specs/avr-atmega164pa.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,37 @@
"arch": "avr",
"atomic-cas": false,
"cpu": "atmega164pa",
"crt-objects-fallback": "false",
"data-layout": "e-P1-p:16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8",
"eh-frame-header": false,
"exe-suffix": ".elf",
"late-link-args": {
"gcc": [
"gnu-cc": [
"-lgcc"
],
"gnu-lld-cc": [
"-lgcc"
]
},
"linker": "avr-gcc",
"linker-flavor": "gnu-cc",
"llvm-target": "avr-unknown-unknown",
"max-atomic-width": 8,
"metadata": {
"description": null,
"host_tools": null,
"std": null,
"tier": null
},
"no-default-libraries": false,
"pre-link-args": {
"gcc": [
"-mmcu=atmega164pa"
"gnu-cc": [
"-mmcu=atmega164pa",
"-Wl,--as-needed,--print-memory-usage"
],
"gnu-lld-cc": [
"-mmcu=atmega164pa",
"-Wl,--as-needed,--print-memory-usage"
]
},
"relocation-model": "static",
Expand Down
22 changes: 19 additions & 3 deletions avr-specs/avr-atmega168.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,37 @@
"arch": "avr",
"atomic-cas": false,
"cpu": "atmega168",
"crt-objects-fallback": "false",
"data-layout": "e-P1-p:16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8",
"eh-frame-header": false,
"exe-suffix": ".elf",
"late-link-args": {
"gcc": [
"gnu-cc": [
"-lgcc"
],
"gnu-lld-cc": [
"-lgcc"
]
},
"linker": "avr-gcc",
"linker-flavor": "gnu-cc",
"llvm-target": "avr-unknown-unknown",
"max-atomic-width": 8,
"metadata": {
"description": null,
"host_tools": null,
"std": null,
"tier": null
},
"no-default-libraries": false,
"pre-link-args": {
"gcc": [
"-mmcu=atmega168"
"gnu-cc": [
"-mmcu=atmega168",
"-Wl,--as-needed,--print-memory-usage"
],
"gnu-lld-cc": [
"-mmcu=atmega168",
"-Wl,--as-needed,--print-memory-usage"
]
},
"relocation-model": "static",
Expand Down
22 changes: 19 additions & 3 deletions avr-specs/avr-atmega2560.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,37 @@
"arch": "avr",
"atomic-cas": false,
"cpu": "atmega2560",
"crt-objects-fallback": "false",
"data-layout": "e-P1-p:16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8",
"eh-frame-header": false,
"exe-suffix": ".elf",
"late-link-args": {
"gcc": [
"gnu-cc": [
"-lgcc"
],
"gnu-lld-cc": [
"-lgcc"
]
},
"linker": "avr-gcc",
"linker-flavor": "gnu-cc",
"llvm-target": "avr-unknown-unknown",
"max-atomic-width": 8,
"metadata": {
"description": null,
"host_tools": null,
"std": null,
"tier": null
},
"no-default-libraries": false,
"pre-link-args": {
"gcc": [
"-mmcu=atmega2560"
"gnu-cc": [
"-mmcu=atmega2560",
"-Wl,--as-needed,--print-memory-usage"
],
"gnu-lld-cc": [
"-mmcu=atmega2560",
"-Wl,--as-needed,--print-memory-usage"
]
},
"relocation-model": "static",
Expand Down
22 changes: 19 additions & 3 deletions avr-specs/avr-atmega328.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,37 @@
"arch": "avr",
"atomic-cas": false,
"cpu": "atmega328",
"crt-objects-fallback": "false",
"data-layout": "e-P1-p:16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8",
"eh-frame-header": false,
"exe-suffix": ".elf",
"late-link-args": {
"gcc": [
"gnu-cc": [
"-lgcc"
],
"gnu-lld-cc": [
"-lgcc"
]
},
"linker": "avr-gcc",
"linker-flavor": "gnu-cc",
"llvm-target": "avr-unknown-unknown",
"max-atomic-width": 8,
"metadata": {
"description": null,
"host_tools": null,
"std": null,
"tier": null
},
"no-default-libraries": false,
"pre-link-args": {
"gcc": [
"-mmcu=atmega328"
"gnu-cc": [
"-mmcu=atmega328",
"-Wl,--as-needed,--print-memory-usage"
],
"gnu-lld-cc": [
"-mmcu=atmega328",
"-Wl,--as-needed,--print-memory-usage"
]
},
"relocation-model": "static",
Expand Down
22 changes: 19 additions & 3 deletions avr-specs/avr-atmega328p.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,37 @@
"arch": "avr",
"atomic-cas": false,
"cpu": "atmega328p",
"crt-objects-fallback": "false",
"data-layout": "e-P1-p:16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8",
"eh-frame-header": false,
"exe-suffix": ".elf",
"late-link-args": {
"gcc": [
"gnu-cc": [
"-lgcc"
],
"gnu-lld-cc": [
"-lgcc"
]
},
"linker": "avr-gcc",
"linker-flavor": "gnu-cc",
"llvm-target": "avr-unknown-unknown",
"max-atomic-width": 8,
"metadata": {
"description": null,
"host_tools": null,
"std": null,
"tier": null
},
"no-default-libraries": false,
"pre-link-args": {
"gcc": [
"-mmcu=atmega328p"
"gnu-cc": [
"-mmcu=atmega328p",
"-Wl,--as-needed,--print-memory-usage"
],
"gnu-lld-cc": [
"-mmcu=atmega328p",
"-Wl,--as-needed,--print-memory-usage"
]
},
"relocation-model": "static",
Expand Down
22 changes: 19 additions & 3 deletions avr-specs/avr-atmega32a.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,37 @@
"arch": "avr",
"atomic-cas": false,
"cpu": "atmega32a",
"crt-objects-fallback": "false",
"data-layout": "e-P1-p:16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8",
"eh-frame-header": false,
"exe-suffix": ".elf",
"late-link-args": {
"gcc": [
"gnu-cc": [
"-lgcc"
],
"gnu-lld-cc": [
"-lgcc"
]
},
"linker": "avr-gcc",
"linker-flavor": "gnu-cc",
"llvm-target": "avr-unknown-unknown",
"max-atomic-width": 8,
"metadata": {
"description": null,
"host_tools": null,
"std": null,
"tier": null
},
"no-default-libraries": false,
"pre-link-args": {
"gcc": [
"-mmcu=atmega32a"
"gnu-cc": [
"-mmcu=atmega32a",
"-Wl,--as-needed,--print-memory-usage"
],
"gnu-lld-cc": [
"-mmcu=atmega32a",
"-Wl,--as-needed,--print-memory-usage"
]
},
"relocation-model": "static",
Expand Down
Loading

0 comments on commit d5c93a1

Please sign in to comment.