Re: ARM assembler: labels



Mark L Pappin <mlp@xxxxxxx> wrote:
"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_.

There is another reason -- *.[csS] files are not the only ones that use or
define labels. There are e.g. linker scripts...

---
******************************************************************
* KSI@home KOI8 Net < > The impossible we do immediately. *
* Las Vegas NV, USA < > Miracles require 24-hour notice. *
******************************************************************
** Posted from http://www.teranews.com **
.



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: Fictional Welsh Genealogies
    ... I am not sure what you mean by "the reality of the 13th century". ... I am saying is that people are often too quick to label a line as ... for the reasons and not a reason to dismiss it outright as ficticious. ... The scribes were not perfectionists, nor did they have our ability to ...
    (soc.genealogy.medieval)
  • Re: Gareth (was Re: Ex-Christian? )
    ... Another reason is that communication tends to be more difficult if you don't have a name to refer to a person by. ... True, human vanity tends to cause the label to acquire an additional importance because most people tend to attach their identity to that label to some extent, but I don't think that God has that same failing. ...
    (uk.religion.christian)
  • Re: Header()
    ... > Luigi Donatello Asero wrote: ... >> beside a label which has no reason to exist! ... > shouldn't be any error messages. ...
    (alt.php)