How to initialize the PWM port on m4 from vf61? What compiler?

I want to generate pwm on cortex M4 and comunicate with Linux on A5.

Please have a look the following article which discusses available examples and required setup. Information for PWM can be found in the Vybrid Technical Reference Manual.

can you give me example for pwm

We do not have any examples for PWM on Cortex M4, as @Sanchayan pointed, please refer the TRM of Vybrid and configure the PWM(flex-timer) accordingly.