The OP
Published on 2017-12-10 22:10
Only look at the author
This post is from Embedded System
Latest reply
Because I only saw the code of your function, I don't know how you use this function outside the function, but I guess your program should define two pointer variables (that is, the actual parameters assigned to the two formal parameters of your function). In the example I wrote, the address and subscript of the array element are directly taken to define one less pointer variable, eliminating the need to assign the value of the pointer of the next address to the current address pointer after calling the function. Of course, this is the case in C code. I don't know whether it is simpler or more troublesome after compiling. My level is limited and I can't understand assembly. To sum up, my idea is to simplify the code of calling functions. I don't know whether the execution efficiency has increased. Of course, I hope it can be increased, but I don't know how to check it. Experts who know about it can give me some advice.
Details
Published on 2017-12-12 08:55
| ||
Personal signature
强者为尊,弱者,死无葬身之地 |
||
This post is from Embedded System
| ||
Personal signature
强者为尊,弱者,死无葬身之地 |
||
|
3
Published on 2017-12-10 22:27
Only look at the author
| |
|
|
|
This post is from Embedded System
| ||
Personal signature
强者为尊,弱者,死无葬身之地 |
||
|
shihuntaotie
Currently offline
|
|
|
|
|
6
Published on 2017-12-11 08:36
Only look at the author
This post is from Embedded System
| ||
|
||
|
7
Published on 2017-12-11 08:41
Only look at the author
| |
|
|
|
8
Published on 2017-12-11 08:45
Only look at the author
This post is from Embedded System
| ||
|
||
|
9
Published on 2017-12-11 09:24
Only look at the author
This post is from Embedded System
| ||
|
||
|
yanhaijian
Currently offline
|
10
Published on 2017-12-11 10:15
Only look at the author
This post is from Embedded System
| |
|
||
|
This post is from Embedded System
| ||
Personal signature
强者为尊,弱者,死无葬身之地 |
||
|
12
Published on 2017-12-11 18:24
Only look at the author
This post is from Embedded System
| ||
|
||
|
This post is from Embedded System
| ||
Personal signature
强者为尊,弱者,死无葬身之地 |
||
|
This post is from Embedded System
| ||
Personal signature
强者为尊,弱者,死无葬身之地 |
||
|
15
Published on 2017-12-12 08:55
Only look at the author
This post is from Embedded System
| ||
|
||
|
This post is from Embedded System
| ||
Personal signature
强者为尊,弱者,死无葬身之地 |
||
|
This post is from Embedded System
| ||
Personal signature
强者为尊,弱者,死无葬身之地 |
||
|
曾经的版主且威望大于2000,或对EEWORLD论坛有突出贡献的坛友
EEWorld Datasheet Technical Support
EEWorld
subscription
account
EEWorld
service
account
Automotive
development
circle
About Us Customer Service Contact Information Datasheet Sitemap LatestNews
Room 1530, Zhongguancun MOOC Times Building, Block B, 18 Zhongguancun Street, Haidian District, Beijing 100190, China Tel:(010)82350740 Postcode:100190