public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: "Rich DAddio" <richdaddio@sandvideo.com>
To: <binutils@sources.redhat.com>
Subject: GNU AS inline question
Date: Wed, 07 May 2003 18:54:00 -0000	[thread overview]
Message-ID: <ECENKMEOAEJLMFKPOFMMCEJFCAAA.richdaddio@sandvideo.com> (raw)

I am doing an os port along with a migration to gcc on a basic RISC. And I
am not quite sure if this is the right list for this question so upfront
apologies it this is not appropriate.

Inside one of the low-level init routines is a function and a piece of
inline assembly for a proprietary compiler assembler:

int storeIt;
void theInitCFunction()
{
  //inline assembly
  _AS("st %mp, [storeIt]");
}

Which stashes the value of mp.

Is there an easy way to do the same thing inline with gcc/as?? Do I have to
use extensions?


Thanks,

Rich D

             reply	other threads:[~2003-05-07 18:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-07 18:54 Rich DAddio [this message]
2003-05-07 19:11 ` Daniel Jacobowitz
2003-05-07 19:11 ` Ian Lance Taylor
2003-05-07 19:18 ` Eric Christopher

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=ECENKMEOAEJLMFKPOFMMCEJFCAAA.richdaddio@sandvideo.com \
    --to=richdaddio@sandvideo.com \
    --cc=binutils@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).