About compiler options when using NEON in i.MX6DL.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

About compiler options when using NEON in i.MX6DL.

跳至解决方案
2,767 次查看
keitanagashima
Senior Contributor I

Dear Sir or Madam,

Hello.

I have a question about compiler options when using NEON in i.MX6DL.

BSP:Yocto L3.10.17_1.0.0

We are executing the program which does an image processing at high speed with NEON.

But, it didn't perform well.

When compiling a program, we sets following compiler options.

[Compiler options]

arm-poky-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mcpu=cortex-a9 -mtune=cortex-a9 --sysroot=/opt/poky/1.5.1/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi -c -O3 -flax-vector-conversions -I./../../test/header -I./../../test/header2 -I./ -I./../../../fsl-community-bsp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/opencv/2.4.6+gitAUTOINC+c5afaa4e8d-r0/packages-split/opencv-dev/usr/include test1.c test2.c

[Quesition]

Please give me your advice to implove the performance.

PS,

When changing "mfloat-abi=hard" to "soft" or "softfp", it became a build error.

Best Regards,

Keita

标签 (5)
0 项奖励
回复
1 解答
1,708 次查看
Yuri
NXP Employee
NXP Employee

1.
Please refer to the next VFP introduction on i.MX6 :

https://community.freescale.com/docs/DOC-100112

Also, the following may be helpful :

"Question, enabling NEON H/W"

https://community.freescale.com/message/380469#380469

2.

  Note, that under Linux we should use the same options for floating point support  and

the same interface for floating point parameters in fucntion calls (ABI) : hardware or software.

Therefore if Linux release is based on hardware options, it is needed to apply those ones

to all applications.


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,708 次查看
CommunityBot
Community Manager
This an automatic process.

We are marking this post as solved, due to the either low activity or any reply marked as correct.

If you have additional questions, please create a new post and reference to this closed post.

NXP Community!
0 项奖励
回复
1,709 次查看
Yuri
NXP Employee
NXP Employee

1.
Please refer to the next VFP introduction on i.MX6 :

https://community.freescale.com/docs/DOC-100112

Also, the following may be helpful :

"Question, enabling NEON H/W"

https://community.freescale.com/message/380469#380469

2.

  Note, that under Linux we should use the same options for floating point support  and

the same interface for floating point parameters in fucntion calls (ABI) : hardware or software.

Therefore if Linux release is based on hardware options, it is needed to apply those ones

to all applications.


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复