Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
82a19cb3
Commit
82a19cb3
authored
Dec 03, 2019
by
Damien George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpy-cross: Support armv7em, armv7emsp, armv7emdp architectures.
parent
8ce69288
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
mpy-cross/main.c
mpy-cross/main.c
+10
-1
No files found.
mpy-cross/main.c
View file @
82a19cb3
...
...
@@ -109,7 +109,7 @@ STATIC int usage(char **argv) {
"-msmall-int-bits=number : set the maximum bits used to encode a small-int
\n
"
"-mno-unicode : don't support unicode in compiled strings
\n
"
"-mcache-lookup-bc : cache map lookups in the bytecode
\n
"
"-march=<arch> : set architecture for native emitter; x86, x64, armv6, armv7m, xtensa, xtensawin
\n
"
"-march=<arch> : set architecture for native emitter; x86, x64, armv6, armv7m,
armv7em, armv7emsp, armv7emdp,
xtensa, xtensawin
\n
"
"
\n
"
"Implementation specific options:
\n
"
,
argv
[
0
]
);
...
...
@@ -285,6 +285,15 @@ MP_NOINLINE int main_(int argc, char **argv) {
}
else
if
(
strcmp
(
arch
,
"armv7m"
)
==
0
)
{
mp_dynamic_compiler
.
native_arch
=
MP_NATIVE_ARCH_ARMV7M
;
mp_dynamic_compiler
.
nlr_buf_num_regs
=
MICROPY_NLR_NUM_REGS_ARM_THUMB_FP
;
}
else
if
(
strcmp
(
arch
,
"armv7em"
)
==
0
)
{
mp_dynamic_compiler
.
native_arch
=
MP_NATIVE_ARCH_ARMV7EM
;
mp_dynamic_compiler
.
nlr_buf_num_regs
=
MICROPY_NLR_NUM_REGS_ARM_THUMB_FP
;
}
else
if
(
strcmp
(
arch
,
"armv7emsp"
)
==
0
)
{
mp_dynamic_compiler
.
native_arch
=
MP_NATIVE_ARCH_ARMV7EMSP
;
mp_dynamic_compiler
.
nlr_buf_num_regs
=
MICROPY_NLR_NUM_REGS_ARM_THUMB_FP
;
}
else
if
(
strcmp
(
arch
,
"armv7emdp"
)
==
0
)
{
mp_dynamic_compiler
.
native_arch
=
MP_NATIVE_ARCH_ARMV7EMDP
;
mp_dynamic_compiler
.
nlr_buf_num_regs
=
MICROPY_NLR_NUM_REGS_ARM_THUMB_FP
;
}
else
if
(
strcmp
(
arch
,
"xtensa"
)
==
0
)
{
mp_dynamic_compiler
.
native_arch
=
MP_NATIVE_ARCH_XTENSA
;
mp_dynamic_compiler
.
nlr_buf_num_regs
=
MICROPY_NLR_NUM_REGS_XTENSA
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment