public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Set address?
@ 2000-06-14 19:56 kanata
  2000-06-18  9:39 ` Martin v. Loewis
  0 siblings, 1 reply; 2+ messages in thread
From: kanata @ 2000-06-14 19:56 UTC (permalink / raw)
  To: help-gcc

Hi All,
Does C has the assembly-link instruction "org" to force set address??
Like this...
main()
{
    aaa(0);
}
org 0xa0000100;
void aaa(int var1)
{
    var1=1;
}
I want procedure aaa to be puted at address 0xa0000100. How can I do it?

Thanks for your kindly support...
Kanata

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Set address?
  2000-06-14 19:56 Set address? kanata
@ 2000-06-18  9:39 ` Martin v. Loewis
  0 siblings, 0 replies; 2+ messages in thread
From: Martin v. Loewis @ 2000-06-18  9:39 UTC (permalink / raw)
  To: kanata; +Cc: help-gcc

> Does C has the assembly-link instruction "org" to force set address??

No, it doesn't. Depending on your target system, you may succeed with
inline assembly, using the asm statement.

Regards,
Martin

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-06-18  9:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-14 19:56 Set address? kanata
2000-06-18  9:39 ` Martin v. Loewis

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).