This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug 1001607] Cortex-M4F architectural Floating Point Support


Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001607

Ilija Kocho <ilijak@siva.com.mk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #1816|0                           |1
        is obsolete|                            |
   Attachment #1893|0                           |1
        is obsolete|                            |

--- Comment #27 from Ilija Kocho <ilijak@siva.com.mk> 2012-08-29 20:34:27 BST ---
Created an attachment (id=1915)
 --> (http://bugs.ecos.sourceware.org/attachment.cgi?id=1915)
Cortex-M4F Floating Point Support 120829

Hi Jifl and others.

Here is the integral patch for Cortex-M4F architectural floating point support.
I have passed through the code several times, cleaned up, fixed formatting and
typos...

There's however one essential addition: option for softfp ABI. Being able to
link softfp code with -mfloat-abi=soft, the -mfloat-abi=softfp flag (when
selected) is applied only to context.S and vectors.S. All other code compiles
with -mfloat-abi=soft thus avoiding potential GCC's "optimizations" - see Note
below.

Note (RFC): according to
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dai0298a/DAFIFGGE.html
if hardware floating point option is selected, GCC may choose to use FPU
registers even if there isn't floating point source. Please comment.

Having this said I have set following defaults:
   - Hardware floating point is disabled by default.
   - When hardware floating point is enabled the default ABI is:
     - softfp for LAZY and NONE
     - hard   for ALL.

Ilija

-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]