Arm Community
Site
Search
User
Site
Search
User
Groups
Arm Research
DesignStart
Education Hub
Graphics and Gaming
High Performance Computing
Innovation
Multimedia
Open Source Software and Platforms
Physical
Processors
Security
System
Software Tools
TrustZone for Armv8-M
中文社区
Blog
Announcements
Artificial Intelligence
Automotive
Healthcare
HPC
Infrastructure
Innovation
Internet of Things
Machine Learning
Mobile
Smart Homes
Wearables
Forums
All developer forums
IP Product forums
Tool & Software forums
Support
Open a support case
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Developer Community
Tools and Software
Software Tools
Jump...
Cancel
Software Tools
Keil forum
function pointer assignment
Tools, Software and IDEs blog
Forums
Videos & Files
Help
Jump...
Cancel
New
State
Not Answered
Replies
3 replies
Subscribers
3 subscribers
Views
2461 views
Users
0 members are here
Function Pointers
C
Related
function pointer assignment
Offline
celia celia
over 7 years ago
Note: This was originally posted on 22nd December 2008 at
http://forums.arm.com
Hi,
I've a scenario here.
say, i have 2 functions. func1 and func2.
func1is at adddress 0x28 and func2 at some other location.
now, i have to pass func1 through func2 (where func1 is a callback function)
func2(func1);
while executing the above, i observed in the assembly instruction that,
ldr r3,0xdb1f0 is called where
At 0xdb1f0:
dcd 0x29 is found.
so that r0 =0x29 (address of func1+1)
Now my question is:
1. why the func1 address 0x29 (func1+1) is loaded instead of 0x28 (func1). what is the logic behind this behaviour.
Please some one answer my question. Though it is not obstructing my work, just curious to know the reason for this behaviour.
Thanks
More questions in this forum
By title
By date
By reply count
By view count
By most asked
By votes
By quality
Descending
Ascending
All recent questions
Unread questions
Questions you've participated in
Questions you've asked
Unanswered questions
Answered questions
Questions with suggested answers
Questions with no replies
Answered
Cannot Load Flash Programming Algorithm STM32H743ZI
0
288
views
2
replies
Latest
19 days ago
by
Jakob Brunhart
Suggested Answer
BreakSet on Function call
0
213
views
2
replies
Latest
20 days ago
by
JSH
Answered
xTaskGetTickCount in CMSIS RTOS
0
238
views
1
reply
Latest
20 days ago
by Former Member
Not Answered
Troubles updating watch windows with Keil IDE and J-Link debugger
0
175
views
1
reply
Latest
20 days ago
by
bptsj
Not Answered
Source browser ''...... '' is undefined
0
148
views
1
reply
Latest
21 days ago
by
Andy Neil
<
>
View all questions in Keil forum