Comments (2)
I have understood how the FPU configuration works (for ARM architecture).
Here it is for reference.
cortexm.py is used to configure the runtime sources/configuration :
-
has_fpu() property must always be set to True else the runtime does not compile.
-
To use software floating point calculations, has_single_precision_fpu() and has_double_precision_fpu() properties must return False. You also have to set -msoft-float switch in compiler_switches().
-
To use hardware floating point calculations, has_single_precision_fpu() or has_double_precision_fpu() or both must return True. You also have to set -mfpu=xxx switch to the correct value in compiler_switches().
In s-bbpara__xxxx.ads the constant Has_FPU is indirectly related to the runtime configuration.
When Has_FPU is True, the floating point context is saved/restored in Pend_SV_Handler() (s-bcpcst__pendsv.adb).
- To use software floating point calculations, set Has_FPU to False.
- To use hardware floating point calculations, set Has_FPU to True.
To be more complete :
has_double_precision_fpu() | has_single_precision_fpu() | --> | compiler switch | Has_FPU | |
---|---|---|---|---|---|
False | False | --> | soft float | -msoft-float | False |
False | True | --> | single precision : hard double precision : soft |
-mfpu=xxx | True |
True | False | --> | single precision : soft double precision : hard |
-mfpu=xxx | True |
True | True | --> | single precision : hard double precision : hard |
-mfpu=xxx | True |
from bb-runtimes.
Hi @NicoPy,
I am glad you found the answer :)
from bb-runtimes.
Related Issues (20)
- Porting run-time to STM32L476RG HOT 16
- Can I generate a generic runtime ? HOT 17
- Bad interrupt names values ? HOT 1
- can't seem to find the working version HOT 1
- Are Tasks supported in RISC-V runtime? HOT 1
- community 2020 : runtime build problems HOT 4
- Cannot statically allocate task to multicore HOT 6
- Community 2020 : build_rts.py bug HOT 3
- How did you test zynq7000 runtime? HOT 5
- Priority ceiling protocol violation HOT 2
- Tasks on second core of the zynq7000 seems to be unable to wake up HOT 4
- Can I generate a runtime with a less restrictive profile ? HOT 10
- Cannot find memory-map_nrf52840.ld HOT 1
- Not sure if read/write on zynq7000's UART works HOT 1
- Update build instructions in README.md. HOT 8
- Strange behaviour HOT 5
- Overhead analysis on Ravenscar for zynq-7000 HOT 2
- aarch64-elf with FSF GNAT HOT 4
- Interfaces.C.Strings tries to call in libcβs strlen HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bb-runtimes.