×
Namespaces

Variants
Actions
Revision as of 07:47, 13 June 2012 by hamishwillee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Enabling hardware floats on ARMV6 builds in Qt for Symbian projects

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Tested with
Devices(s): Nokia N8-00, Nokia C6-00
Compatibility
Platform(s): Symbian^3
Symbian
Article
Keywords: floating point, float, double, hardware acceleration, math processor, armv6
Created: tuohirv (29 Apr 2014)
Last edited: hamishwillee (13 Jun 2012)

Overview

Floating point operations can be quite slow with Symbian^3 framework's default settings. Even though the ARMV6 processor is capable of hardware floating point calculations, by default the compiler provided with the SDK doesn't deploy them but uses software emulation instead.

The following snippet shows how you can enable the GCCE compiler to use its math processor when using floating point instructions within your Qt application for Symbian^3.

This can speed up the floating point operations up to 1000%.

The following code is to be placed under your project's .pro file's symbian {} section.

Preconditions

  • Qt 4.7 or higher is installed on your platform.

Source

symbian: {
MMP_RULES += "OPTION gcce -march=armv6"
MMP_RULES += "OPTION gcce -mfpu=vfp"
MMP_RULES += "OPTION gcce -mfloat-abi=softfp"
MMP_RULES += "OPTION gcce -marm"
}
This page was last modified on 13 June 2012, at 07:47.
73 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×