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: Accessing fixed addresses


Thanks for the replies.  The suggestions seem to fall mainly into two 
camps: putting "static" in front of the definition, and putting the 
definition in the link file.

The first is definitely the easiest for me to hack in at this point.  
There's a bit of additional storage overhead, since each object file has 
its own copy of the pointers, but it's not a concern for me at this 
point.

The second is probably the better one in the long run.  I had considered 
using the link file, but I was still thinking in terms of pointers, 
rather than variables that actually reside at the hardware location.  I 
think this will do what I want.  I'll have to read up a bit more on the 
link file syntax and see how clever I can be :).

Thanks again.
--
John A. Breen
jab3@hotmail.com


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.