Difference Between e_lwz and lwz

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

Difference Between e_lwz and lwz

2,494 次查看
tektronix
Contributor II

What is the difference between e_lwz and lwz ? e_stw and stw? Apart from one is VLE and other is not? I see huge timing difference when I read or write to memory when using e_stw and stw.

Why is this so?

Regard's

0 项奖励
回复
4 回复数

1,855 次查看
tektronix
Contributor II

I am using MPC56XX device and I am using CodeWarrior. I think they are based on VLE or non VLE

0 项奖励
回复

1,855 次查看
stanish
NXP Employee
NXP Employee

Hi,

indeed e_ prefix represents 32-bit VLE instrction whereas no prefix means BookE instruction.

Regarding e_stw / stw:

both are 32 bit instructions with same operands but different opcodes.I don't think there should be a big timing difference between these two instructions.


In general you can expect VLE code a bit slower in contrast to BookE but on the other hand the code density is much higher.

The higher code density may result in more efficient instruction cache/instruction buffer usage which may improve the code speed too.

Can you describe your observations more in the detail and also test case you use for benchmarking?


Thanks!


Stan

0 项奖励
回复

1,855 次查看
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello:

Ok, thanks for sharing that information. I do not have an answer. We can wait for a response or you can always submit a service request if this is critical for you.

Regards!

Jorge Gonzalez

0 项奖励
回复

1,855 次查看
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello:

Could you please provide more details so your question can be investigated?

What software and device are you using?

What are those e_lwz and lwz you refer to?

Sorry about the questions, I'm just trying to help.

Regards!

Jorge Gonzalez

0 项奖励
回复