tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Support arm hardfloat calling convention


From: Thomas Preud'homme
Subject: Re: [Tinycc-devel] Support arm hardfloat calling convention
Date: Sun, 11 Nov 2012 19:58:02 +0100
User-agent: KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; )

Le dimanche 11 novembre 2012 17:14:45, Milutin Jovanović a écrit :
> Hi,
> 
> Sorry for resurecting an old thread, but I do believe it is related. I am
> having some trouble passing tests on Raspberry Pi (armv6 vfp), specifically
> float point ones.
> 
> Below pseude code is my understanding of compiler predefines. Did I
> understand their meaning correctly?
> 
> #if !defined(TCC_ARM_VFP) && !defined(TCC_ARM_HARDFLOAT)
> // == gcc -float-abi=soft
> #elif defined(TCC_ARM_VFP) && !defined(TCC_ARM_HARDFLOAT)
> // == gcc -float-abi=softfp
> #elif defined(TCC_ARM_VFP) && defined(TCC_ARM_HARDFLOAT)
> // == gcc -float-abi=hard

I made TCC_ARM_HARDFLOAT to support the case of -march=armv7-a + -float-
abi=hard. This assumption is in several place in the code where I used 
instructions from ARMv7 instruction set. I should check but probably the 
instructions I used are also available on ARMv6 so it should be fine for 
Raspbian. But yeah, the way TCC_ARM_HARDFLOAT is detected is not the best one. 
Suggestions welcome.

> #elif !defined(TCC_ARM_VFP) && defined(TCC_ARM_HARDFLOAT)
> #error this is not allowed
> #endif

Correct otherwise.

> 
> Miki.

Tom

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]