Keil Logo Arm Logo

ARMCC: VECTOR FLOATING POINT UNIT ON LPC3000


Information in this article applies to:

  • RealView C Compiler Version 3

QUESTION

How can I use the Vector Floating Point (VFP) unit on NXP LPC3000 devices? Is the VFP unit fully supported in the RealView compiler?

ANSWER

Yes, the VFP unit is fully supported on LPC3180 devices. Just enter the following directive under Projects — Options — C/C++ — Misc Controls:

--fpu=vfpv2

The directive may be selectively used for the modules that should use the VFP unit. Other modules (where you may disable the VFP unit during execution) may be translated without this directive.

The directive can be also applied to assembler modules.

You may even inline the sqrt function when you are using the compiler directives under Projects — Options — C/C++ — Misc Controls:

--fpu=vfpv2 --fpmode=fast

When you are using the optimize level 2 or above, the code below will be translated in-line using VFP instructions.

  float f1, f2;
    :
  f1 = f1 * sqrtf (f2);

MORE INFORMATION

  • RealView Compilation Tools - Compiler and Libraries Guide, Using the ARM Compiler

Last Reviewed: Friday, April 27, 2007


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

ARM’s Privacy Policy has been updated. By continuing to use our site, you consent to ARM’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.

Acquisition of ARM Holdings plc. by SoftBank Group Corp.

We are pleased to inform you that on 5 September 2016, SoftBank Group Corp. acquired ARM Holdings Plc. ARM will continue to operate as an independent business within the SoftBank group.

Any current agreements between ARM Ltd (or other ARM group companies, as applicable) you / your company remain in effect as between the parties, and the parties will continue to be bound by and perform the obligations in such agreements. If you have any queries please direct these to ARMSoftbank-Notifications@arm.com.