Searching \ for '[PIC]: MPLAB IDE 5.7 (16-bit) : MPASM Relocatable' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/languages.htm?key=mplab
Search entire site for: 'MPLAB IDE 5.7 (16-bit) : MPASM Relocatable'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: MPLAB IDE 5.7 (16-bit) : MPASM Relocatable '
2002\10\20@093803 by c Scheepers

flavicon
face
Hi there,

I am trying to make my functions that I write either a object or a library. so that I can use them later in all my code and not have to worry once they are debugged and ready.

       1. Is relocatable code working in MPLAB? It seems that as soon as I try to use relocatable code the simulator or linker gets confused and overlay my variables into one memory space. I just cannot get it working without misterious problems up to now (i.e. my projects compile and link without one error).
       2.If I use obviously relocatable code in my objects do I have to use it in my main project too or can I assign varaiables or constants to specific memory locations(i.e. using EQU, ORG etc in the main project) versus using UDATA and CODE etc or in other          3.Is there anything specific that I must look out for?
       4. If I start using the relocatable modules I also may find that the watch window does not give me my variables to watch so I have to look them up in RAM. Why so?
       5. Can i make use of the default settings of my projects specifying the default include files, lkr files etc or do I have to have all the files in the local directory or is this just  not working?

Regards

Nic Scheepers

Cell : 082 903 5012

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2002\10\20@111619 by Olin Lathrop

face picon face
This reply is much less detailed as it could be since you insist on using
quoted printable encoding.  (I don't understand what part of "plain text"
some people just can't get.  Duh!)

>>
I am trying to make my functions that I write either a object or a library.
so that I can use them later in all my code and not have to worry once they
are debugged and ready.

       1. Is relocatable code working in MPLAB? It seems that as soon as I
try to use relocatable code the simulator or linker gets confused and
overlay my variables into one memory space. I just cannot get it working
without misterious problems up to now (i.e. my projects compile and link
without one error).
       2.If I use obviously relocatable code in my objects do I have to use
it in my main project too or can I assign varaiables or constants to
specific memory locations(i.e. using EQU, ORG etc in the main project)
versus using UDATA and CODE etc or in other
       3.Is there anything specific that I must look out for?
       4. If I start using the relocatable modules I also may find that the
watch window does not give me my variables to watch so I have to look them
up in RAM. Why so?
       5. Can i make use of the default settings of my projects specifying
the default include files, lkr files etc or do I have to have all the files
in the local directory or is this just  not working?
<<

Relocatable code not only works, it is definitely the best way to go.  For
templates and examples see http://www.embedinc.com/pic.  I would respond to
some of your points individually if Outlook Express would properly indent
your original text.  It's not worth the trouble to do it manually.


*****************************************************************
Embed Inc, embedded system specialists in Littleton Massachusetts
(978) 742-9014, http://www.embedinc.com

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


More... (looser matching)
- Last day of these posts
- In 2002 , 2003 only
- Today
- New search...