How to Use altivec?
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
hi
i am using the T4240rdb board i want to know how to enable altivec feature is it built in
in the t4240rdb fsl-image-core and how can we exploit the altivec feature is there any code or command for that

- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Altivec is a feature of e6500 core accessed by special command subset.
In kernel, it is enabled by CONFIG_ALTIVEC option which is enabled in the SDK default configuration
for all supported e6500-based processors/boards.
For user space, '-maltivec' GCC option allows the compiler to utilize Altivec instructions. Again,
the SDK sets this flag when it builds rootfs by default.
Have a great day,
Platon
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
thank you for replying i have one more question
for example if we are going to add some 4000 matrices and then use this altivec feature will it help in reducing the computation time significantly than the normal compiling and executing

- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Read the materials at the links below for more information on Altivec support in GCC:
PowerPC AltiVec Built-in Functions - Using the GNU Compiler Collection (GCC)
An Introduction to GCC Compiler Intrinsics in Vector Processing | Linux Journal
