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
Not Answered
On STM32h753 UART interrupt is working fine after programming the controller using keil but malfunctions after complete power reset ?
0
STM32
196
views
2
replies
Latest
18 days ago
by
Akash Kasturi
Not Answered
The timer flag is set immediately
0
C++
101
views
0
replies
Started
18 days ago
by
user001
Suggested Answer
updating DAC stm32f407 cubemx with timer interrupt went wrong
0
301
views
4
replies
Latest
18 days ago
by
rocko874
Suggested Answer
How to enable right ALT modifier key for german Umlauts?
0
213
views
3
replies
Latest
19 days ago
by
Andy Neil
Not Answered
debugging timer interrupt delay in KEIL
0
90
views
0
replies
Started
19 days ago
by
rocko874
<
>
View all questions in Keil forum