Login

Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.

ARM Community: gcc put a address into a data word - ARM Community

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

gcc put a address into a data word Rate Topic: ***-- 1 Votes

#1 User is offline   webshaker 

  • Regular Contributor
  • PipPipPip
  • Group: Members
  • Posts: 220
  • Joined: 07-October 10

Posted 02 July 2011 - 08:21 AM

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
When you have eliminated the impossible, whatever remains, however improbable, must be the truth
0

#2 User is offline   Jerry Fan 

  • Contributor
  • PipPip
  • Group: Members
  • Posts: 56
  • Joined: 10-January 11

Posted 03 July 2011 - 03:26 AM

jump_table:
jump_addr1 .word label1
jump_addr2 .word label2
jump_addr3 .word label3
1

#3 User is offline   webshaker 

  • Regular Contributor
  • PipPipPip
  • Group: Members
  • Posts: 220
  • Joined: 07-October 10

Posted 03 July 2011 - 08:10 AM

瀏覽文章引用框(Jerry Fan @ 03 July 2011 - 03:26 AM)

jump_table:
jump_addr1 .word label1
jump_addr2 .word label2
jump_addr3 .word label3


Damned...
I forgot the dot before word (.word)

Thank you.
I could have search for days !!!

Etienne
When you have eliminated the impossible, whatever remains, however improbable, must be the truth
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic