fixed-point types not supported for this target

View: New views
2 Messages — Rating Filter:   Alert me  

fixed-point types not supported for this target

by informat :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hallo,

ich versuche gerade Code für einen Atmel644p zu schreiben. Ich benutze
Code Blocks und versuche gerade eine Bibliothek für Fixpoint Arithmetik
(avrfix) zu linken. Ich bekomme allerdings zu Zeilen wie dieser:

extern _sAccum smulskD(_sAccum, _sAccum);

ganz viele Fehlermeldungen dieser Art:

error: fixed-point types not supported for this target

Der Fehler tritt überall, wo _sAccum benutz wird.

_sAccum scheinen irgendwelche Typen aus dem gcc selbst zu sein, aber ich
bin mit dem Thema nicht vertraut  und weiß nicht , wo ich ansetzen
soll...

Hat jemand eine Idee?

Viele Grüße,

informat

PS: Ich habe die Frage auch auf www.microcontroller.net gestellt, aber keine Antwort bekommen.

Re: fixed-point types not supported for this target

by Ian Lance Taylor-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

informat <davidz@...> writes:

> ich versuche gerade Code für einen Atmel644p zu schreiben. Ich benutze
> Code Blocks und versuche gerade eine Bibliothek für Fixpoint Arithmetik
> (avrfix) zu linken. Ich bekomme allerdings zu Zeilen wie dieser:
>
> extern _sAccum smulskD(_sAccum, _sAccum);
>
> ganz viele Fehlermeldungen dieser Art:
>
> error: fixed-point types not supported for this target
>
> Der Fehler tritt überall, wo _sAccum benutz wird.
>
> _sAccum scheinen irgendwelche Typen aus dem gcc selbst zu sein, aber ich
> bin mit dem Thema nicht vertraut  und weiß nicht , wo ich ansetzen
> soll...
>
> Hat jemand eine Idee?


Sorry, but this is normally an English mailing list, and you will
normally do better to ask your questions in English.  There are no
doubt German lists as well, but I don't know where they are.

I would expect to see that error message if I named a variable
"_Accum".  Names which begin with an underscore followed by a capital
letter are reserved for the implementation.  The name "_Accum" is used
by gcc as a keyword to implement a fixed-pointer accumulator.  This
follows a proposed standard for fixed-pointer arithmetic in C.

I don't know whether that answers your question.

Ian