This is a multi-question post.
I am using a Kinetis K60F -- so it has a FPU and Crosswoks identifies __FPU_PRESENT = 1
In file Kinetis_Startup.s the following conditional block of code exists ...
#if defined(__FPU_PRESENT) && !defined(__SOFTFP__)
// Enable CP11 and CP10 with CPACR |= (0xf<<20)
movw r0, 0xED88
movt r0, 0xE000
Default property value for "ARM FP ABI Type" under C code generation option is set to "SOFT"
Note -- option "ARM FP ABI Type" has 4 selections to choose from: SOFT, SOFTFP, HARD, NONE
I dump the obj file to a listing so I can see exactly what code is being generated.
When "ARM FP ABI Type" is set to SOFT -- the conditional block of code is NOT generated.
When "ARM FP ABI Type" is set to SOFTFP or HARD -- the conditional block of code IS generated.
Note -- "ARM FP ABI Type" type is NOT shown as NOT shown as a Preprocessor Definition so .....
Question #1 --- How is the "ARM FP ABI Type" being passed to the compiler?
Question #2 --- How can I view/see the compiler command string?
Question #3 --- It seems the behavior is NOT correct as __SOFTFP__ is defined when "ARM FP ABI Type" is set to SOFT instead of SOFTFP.
Thanks in advance for any comments/reply.
Please sign in to leave a comment.