VLES with CodeWarrior C  language

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

VLES with CodeWarrior C  language

455 Views
didib
Contributor I

Hi all.

I want to use VLES in order to improve my application performance.

Can i do it  with C language (not asm)?

Can i use some intrinsics that wrap the VLES instructions?

Actually, i want to copy the first element, forth, 7, 10 from  a source buffer to another bufffer and then to cpoy the second,5,8 elements from the source buffer to another bufffer. I want to abstain from loop asmuch as possible, tjen i thought on VLES and intrinsics.

 

Thanks a lot 

Labels (1)
0 Kudos
3 Replies

330 Views
CrasyCat
Specialist III

Hello

 

    - Which CPU are you targeting (HC08, HC12, Coldfire, ..)
    - Which version of CodeWarrior are you using?

It is difficult to answer such a question when we get no idea what you are talking about.

 

CrasyCat

0 Kudos

330 Views
didib
Contributor I

I am using the 8157 board - sc3580.

CW version 10.2.1

Thanks

0 Kudos

330 Views
J2MEJediMaster
Specialist I

The StarCore C compiler automatically generates VLES for you. You can use the intrinsics functions to optimize the code to a degree. The StarCore application AN3391 explains how to do this for a complex FIT algorithm, but you need to sign an non-disclosure agreement to see it.

 

---Tom

0 Kudos