S32DS Power Architecture - Optimization Level (-O1)

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32DS Power Architecture - Optimization Level (-O1)

1,990件の閲覧回数
demian91
Contributor III

Hi i trying to use Standard 32DS C Compiler with Optimization Level -O1 in the IDE S32DS.Power.2.1 and i have problems between Optimization -O0 and -O1.

In my case i using in MPC5746R the DSPI with DMA and EOQ interrupts and when i read for example a register of 16 bits, it takes 4 milliseconds and in -O0 works correct for the time.

Any Document about the diferents optimization levels that explain what does the IDE do?

0 件の賞賛
返信
3 返答(返信)

1,909件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

Hi, 

you can look at gcc documentation - GCC online documentation- GNU Project - Free Software Foundation (FSF)  

Did you tried find out what's wrong whit single instruction debug? 

pastedImage_2.png

It is possible share your project? 

Jiri 

0 件の賞賛
返信

1,909件の閲覧回数
demian91
Contributor III

Thanks for the documents, i saw the instructions but i couldn´t understand all.

0 件の賞賛
返信

1,909件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

Hi, 

well, it's really hard to say what may be wrong without project. Almost in all cases are optimization faults caused by wrong programming technique and optimization just uncovers it. 

Try to compare the part of disassembled code which causes issue for both optimization levels (O0 and O1). 

Jiri 

0 件の賞賛
返信