From: "Michael K. Elwood" <mkelwood@qsicorp.com>
To: crossgcc@sources.redhat.com
Subject: Re: Arm packing
Date: Thu, 26 Oct 2000 12:47:00 -0000 [thread overview]
Message-ID: <39F889E3.23F9F1D5@qsicorp.com> (raw)
Stan Katz wrote:
> Robert Floyd [ mailto:robert.floyd@inet.com ] Wrote:
> > Since I really want to write my code in C but I also don't want to
> > recreate the wheel, since there is alot of assembly language
> > functions I
> > could use, how could I write this DoHelloWorld function in C.
> >> Snip
> <<portions deleted>>
> This lets the C compiler handle the assignment of the addresses to the
> registers which are passed as parameters to the asm function. Since the
> compiler seems to concatenate all the asm strings into one long string, I
> use a single asm statement and let it concatenate the strings before
> processing the asm.
Wouldn't it just be easier to modify your asm to properly use the C
calling conventions for your machine?
MKE
--
**********************************************************
Michael K. Elwood mkelwood@qsicorp.com
QSI Corporation
The fourth(?) Law of Thermodynamics:
(Work in Theory) <= (Work in Practice)
**********************************************************
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
next reply other threads:[~2000-10-26 12:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-10-26 12:47 Michael K. Elwood [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-10-26 11:48 David Milburn
2000-10-26 12:03 ` Philip Blundell
2000-10-26 12:14 ` Rod Stewart
2000-10-26 12:47 ` David Querbach
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=39F889E3.23F9F1D5@qsicorp.com \
--to=mkelwood@qsicorp.com \
--cc=crossgcc@sources.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).