Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
gcc put a address into a data word
Jump...
Cancel
Locked
Locked
Replies
2 replies
Subscribers
118 subscribers
Views
2820 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
gcc put a address into a data word
Etienne SOBOLE
over 12 years ago
Note: This was originally posted on 2nd July 2011 at
http://forums.arm.com
Hi.
I'm trying to build a jump table, but I do not succed to declare the table
for example
.label1:
...
...
.label2:
...
...
.label3:
...
...
.jump_table
word .label1
word .label2
word .label3
gcc are not happy with "word .label1"
how can I declare that the address of .label1 is in the first word of .jump_table ?
Thank's
Parents
Jerry Fan
over 12 years ago
Note: This was originally posted on 3rd July 2011 at
http://forums.arm.com
jump_table:
jump_addr1 .word label1
jump_addr2 .word label2
jump_addr3 .word label3
Cancel
Vote up
0
Vote down
Cancel
Reply
Jerry Fan
over 12 years ago
Note: This was originally posted on 3rd July 2011 at
http://forums.arm.com
jump_table:
jump_addr1 .word label1
jump_addr2 .word label2
jump_addr3 .word label3
Cancel
Vote up
0
Vote down
Cancel
Children
No data