-
- Downloads
Removed `register` keyword from code
For example in interrupts_cortexMx.cpp: ```cpp static unsigned int getProgramCounter() { unsigned int result; // Get program counter when the exception was thrown from stack frame asm volatile("mrs %0, psp \n\t" "add %0, %0, #24 \n\t" "ldr %0, [%0] \n\t":"=r"(result)); return result; } ``` To check differences in the generated code we disassempled the compiled source with and without the keyword, both for O0 and O2 and both for gcc and clang. Only in a couple of cases with O0 and gcc there were some differences in the instructions, but non in the semantics Removed `register` keyword and changed how the stack pointer is copied in `getCurrentFreeStack` function
Showing
- miosix/arch/cortexM0_stm32f0/common/interfaces-impl/delays.cpp 1 addition, 1 deletion...x/arch/cortexM0_stm32f0/common/interfaces-impl/delays.cpp
- miosix/arch/cortexM3_efm32g/common/interfaces-impl/delays.cpp 1 addition, 1 deletion...ix/arch/cortexM3_efm32g/common/interfaces-impl/delays.cpp
- miosix/arch/cortexM3_efm32gg/common/interfaces-impl/delays.cpp 1 addition, 1 deletion...x/arch/cortexM3_efm32gg/common/interfaces-impl/delays.cpp
- miosix/arch/cortexM3_stm32f1/common/interfaces-impl/delays.cpp 12 additions, 12 deletions...x/arch/cortexM3_stm32f1/common/interfaces-impl/delays.cpp
- miosix/arch/cortexM3_stm32f2/common/interfaces-impl/delays.cpp 3 additions, 3 deletions...x/arch/cortexM3_stm32f2/common/interfaces-impl/delays.cpp
- miosix/arch/cortexM4_atsam4l/common/interfaces-impl/delays.cpp 1 addition, 1 deletion...x/arch/cortexM4_atsam4l/common/interfaces-impl/delays.cpp
- miosix/arch/cortexM4_stm32f3/common/interfaces-impl/delays.cpp 6 additions, 6 deletions...x/arch/cortexM4_stm32f3/common/interfaces-impl/delays.cpp
- miosix/arch/cortexM4_stm32f4/common/interfaces-impl/delays.cpp 4 additions, 4 deletions...x/arch/cortexM4_stm32f4/common/interfaces-impl/delays.cpp
- miosix/arch/cortexM4_stm32l4/common/interfaces-impl/delays.cpp 9 additions, 9 deletions...x/arch/cortexM4_stm32l4/common/interfaces-impl/delays.cpp
- miosix/arch/cortexM7_stm32f7/common/interfaces-impl/delays.cpp 1 addition, 1 deletion...x/arch/cortexM7_stm32f7/common/interfaces-impl/delays.cpp
- miosix/arch/cortexM7_stm32h7/common/interfaces-impl/delays.cpp 2 additions, 2 deletions...x/arch/cortexM7_stm32h7/common/interfaces-impl/delays.cpp
- miosix/arch/cpu/armv4/interfaces-impl/atomic_ops_impl.h 8 additions, 8 deletionsmiosix/arch/cpu/armv4/interfaces-impl/atomic_ops_impl.h
- miosix/arch/cpu/armv4/interfaces-impl/interrupts.cpp 3 additions, 3 deletionsmiosix/arch/cpu/armv4/interfaces-impl/interrupts.cpp
- miosix/arch/cpu/armv6m/interfaces-impl/interrupts_impl.h 1 addition, 1 deletionmiosix/arch/cpu/armv6m/interfaces-impl/interrupts_impl.h
- miosix/arch/cpu/armv7m/interfaces-impl/interrupts_impl.h 1 addition, 1 deletionmiosix/arch/cpu/armv7m/interfaces-impl/interrupts_impl.h
- miosix/libsyscalls/memoryprofiling.cpp 1 addition, 1 deletionmiosix/libsyscalls/memoryprofiling.cpp
- miosix/util/util.cpp 1 addition, 1 deletionmiosix/util/util.cpp
Loading
Please register or sign in to comment