Re: code directive question

Craig Franklin <[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.gnupic
Message-ID <[email protected]>
Ben Dugan wrote:

> Craig Franklin wrote:
>
>> Read 5.5-6.4 of the MPLINK section.
>
>
> Craig,
>
> I really appreciate your patience with me on this: I must be missing 
> something very obvious!  I just read sections 5.5 - 6.4 but I still 
> don't get it.
>
> I'd like to ask a question about the example in section 7.4:
>
> The source code example file they give there has the line:
>
> INTHAND    CODE
>
>
> I assume lines following that are going to be placed in the section 
> identified in the linker script as:
>
> CODEPAGE NAME=vectors START=0x0 END=0x27 ...
>
> What I don't understand is how the linker knows how to do that? 
> Shouldn't the names ("INTHAND" in the asm file, and "vectors" in the 
> linker script) match or something?
>
> I know I'm missing something!
>

There are logical sections defined at the end of the script.  In that 
example, INTHAND is placed in eeprom.

> Ben
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.