Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8077369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T15:27:34+00:00 2026-06-05T15:27:34+00:00

I am using a ARM Cortex-M3, and a Cortex-M4. I want to make use

  • 0

I am using a ARM Cortex-M3, and a Cortex-M4. I want to make use of GCC’s fixed-point type extension. I am using the summon-arm-toolchain. The following line of code

_Fract f = 0.1;

throws the following compile error:

error: fixed-point types not supported for this target

Does GCC really not support the fixed-point types for Cortex-M3/M4, or am I missing something here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T15:27:35+00:00Added an answer on June 5, 2026 at 3:27 pm

    Just for the record, I will answer my own question.

    TL;DR: fixed-point types extension is supported for the ARM Cortex-M/R architecture in the embedded branch of gcc (version 4.6 and later). A toolchain based on that gcc branch is found here.

    Long answer:

    At the time of writing, the summon-arm-toolchain downloads by default linaro-gcc-4.5-2011.02 (or alternatively gcc-4.5.2). It does not have enabled by default the fixed-point types extension. I tried adding the parameter --enable-fixed-point to configure, but I got the compile error described by this bug. I tried using a more recent version of (linaro-)gcc, but the summon-arm-toolchain had problems applying its own provided gcc patch to this newer version. I also tried using the dev branch of this toolchain (which uses linaro-gcc-4.6-2011.10) without success. It looks like, at this point, fixed-point extension is not supported for ARM Cortex-M/R neither by linaro-gcc, nor the main branch of gcc.

    I then tried the gcc-arm-embedded toolchain, which is based on the embedded branch of gcc. I was able to compile my fixed-point types sample program without problems, for targets ARM Cortex-M3 and Cortex-M4. Support for this extension for Cortex-M/R was added in late 2011, as can be seen on this thread.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to build a static hello world from C using arm-linux-gnueabi-gcc as opposed
I'm trying to program ARM using Eclipse + CDT + yagarto (gnu toolchain) +
I have an application which i build using gcc on linux host for ARM
We're working on a C program compiled with arm-eabi-gcc under Linux. We're using a
I'm using an ARM Cortex-A8 based processor called as i.MX515. There is linux Ubuntu
I'm making use of an ARM Cortex-A8 based processor and I have several places
I am using the CodeSorcery arm-eabi-gcc tool chain and I have a problem using
I'm having a real strange problem using GCC for ARM with the optimizations turned
I'm using the following code to do a simple counter-based delay/wait for ARM: .thumb_func
I'm currently in the process of building an embedded system, using an ARM Cortex

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.