Re: ARM assembler: labels



"Roman Mashak" <mrv@xxxxxxxx> writes:

_exception_vectors:
reset_vector:
ldr pc, =reset_handler
undef_vector:
b undef_vector /* Undefined Instruction */
.....

'_exception_vectors' is not referred anywhere else in the code. I
was asking about such situations. Perhaps Atmel guys writing this
code just forgot to erase old label or they might have left it
deliberately for some reason.

"some reason" could be: documentation, or separation of purpose.

'_exception_vectors' refers to a table of vectors.
'reset_vector' refers to a single vector.
The fact that they both happen to be the same address is not important
in many situations, but the fact that the two concepts exist _is_.

mlp
.



Relevant Pages

  • Re: ARM assembler: labels
    ... code just forgot to erase old label or they might have left it ... "some reason" could be: ... '_exception_vectors' refers to a table of vectors. ... 'reset_vector' refers to a single vector. ...
    (comp.arch.embedded)
  • Re: Begging the question and leap of faith
    ... There is a difference between Logic, Reason and intelligence. ... Intelligence refers to the ability to adapt to Reality. ... Logic refers to verbal reasoning according to certain rules and is only a ...
    (soc.religion.islam)
  • Re: Chapters and Sections in LINK
    ... This really depends on the terminology used, and the terminology may vary by the type of publication. ... This is one reason why "chapter" and "section" are vague values. ...
    (comp.infosystems.www.authoring.html)
  • Re: speeding
    ... the fact that *I* brought it up isn't a good reason for declaring ... distinct interpretations, depending on context (as of course most ... distinctions in interpretation depend on context). ... rarely if ever is there any confusion as to what it refers to. ...
    (uk.rec.driving)
  • Re: speeding
    ... the fact that *I* brought it up isn't a good reason for declaring ... distinct interpretations, depending on context (as of course most ... distinctions in interpretation depend on context). ... rarely if ever is there any confusion as to what it refers to. ...
    (uk.rec.driving)