This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Porting code to gcc, replacement for SFR?


In article
<2.2.32.19971107115504.00694650.cygnus.crossgcc@mail.trintech.ie>, Roy
Leonard <rleonard@trintech.com> wrote:

   If I understand "The Explicit reg vars" correctly, this allows you to access
   the internal registers which are addressed by name in assembler, eg. r1.  If
   I understand this correctly, it doesn't allow you to specify a memory mapped
   register.  Is this correct? If this allows you to specify a memory mapped
   register, how do I implement it?
   
Either declare it as a pointer to an int and set its address or use a
linker script to make sure it is defined at the correct address.