From: shreyas krishnan <shreyas76@gmail.com>
To: DJ Delorie <dj@redhat.com>
Cc: dave.korn@artimi.com, binutils@sources.redhat.com
Subject: Re: Address assignment
Date: Wed, 14 Sep 2005 22:16:00 -0000 [thread overview]
Message-ID: <24389fb305091407052bf6c45b@mail.gmail.com> (raw)
In-Reply-To: <200509141316.j8EDGj2h015594@greed.delorie.com>
Thanks Delorie, your solutions works. I just need to follow the
lcomm/comm/any other
directive with the address assignment. I wasnt aware you could do
some thing like that hence my confusion. But what can you do to place
functions, can such an assigment be used again? I found some other
directives like .org but that seems to advance the pointer for ever, I
only want to be able to change the address for some functions.
regards
shrey
On 9/14/05, DJ Delorie <dj@redhat.com> wrote:
>
> > Ah, you're using a compiler rather than writing assembly?
>
> You use the compiler to define the structure, and assembly to place
> it.
>
> > >> .global _my_struct
> > >> _my_struct = 0xa0001028
> >
> > you'd want to use a pointer variable:
> >
> > struct my_struct_type * const my_struct = (struct my_struct_type
> > *)0xa0001028;
>
> Why add an unneeded level of indirection? Especially on time-critical
> embedded systems?
>
next prev parent reply other threads:[~2005-09-14 21:20 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-14 4:20 shreyas krishnan
2005-09-14 5:38 ` DJ Delorie
2005-09-14 10:47 ` shreyas krishnan
2005-09-14 13:17 ` Dave Korn
2005-09-14 16:50 ` DJ Delorie
2005-09-14 19:37 ` Dave Korn
2005-09-14 20:53 ` Paul Koning
2005-09-14 21:20 ` Dave Korn
2005-09-14 22:16 ` shreyas krishnan [this message]
2005-09-14 19:23 ` DJ Delorie
2005-09-14 23:23 ` shreyas krishnan
2005-09-14 23:43 ` DJ Delorie
2005-09-15 2:23 ` shreyas krishnan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=24389fb305091407052bf6c45b@mail.gmail.com \
--to=shreyas76@gmail.com \
--cc=binutils@sources.redhat.com \
--cc=dave.korn@artimi.com \
--cc=dj@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).