Skip to content

Commit

Permalink
atmega32a: Add target spec
Browse files Browse the repository at this point in the history
  • Loading branch information
West14 committed Aug 29, 2023
1 parent 870a770 commit 3d91565
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
25 changes: 25 additions & 0 deletions avr-specs/avr-atmega32a.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"arch": "avr",
"atomic-cas": false,
"cpu": "atmega32a",
"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": [
"-lgcc"
]
},
"linker": "avr-gcc",
"llvm-target": "avr-unknown-unknown",
"max-atomic-width": 8,
"no-default-libraries": false,
"pre-link-args": {
"gcc": [
"-mmcu=atmega32a"
]
},
"relocation-model": "static",
"target-c-int-width": "16",
"target-pointer-width": "16"
}
3 changes: 3 additions & 0 deletions avr-specs/sync-from-upstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"atmega168": {
"cpu": "atmega168",
},
"atmega32a": {
"cpu": "atmega32a"
},
"atmega328p": {
"cpu": "atmega328p",
},
Expand Down

0 comments on commit 3d91565

Please sign in to comment.