gcc -print-file-name and -mfpu option
Hello everyone,
I'm trying to compile an application for an ARM Cortex-M3. The application uses printf(). A fpu is specified with -mfpu=fpv4-sp-d16.
In order to find the correct libc the -print-file-name option is used as followed:
arm-none-eabi-gcc -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -print-
It points to the non-thumb version of libc:
/opt/gcc-
When compiling the application with the same c flags thumb code is generated and is therefore not compatible with the libc.
When omitting the -mfpu=fpv4-sp-d16 parameter gcc points to the right library:
arm-none-eabi-gcc -mcpu=cortex-m4 -print-
/opt/gcc-
What point do i miss?
Kind regards,
Maximilian Pachl
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Thomas Preud'homme
- Solved:
- Last query:
- Last reply: