linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Steve Graegert <graegerts@gmail.com>
To: linux-c-programming@vger.kernel.org
Subject: Re: MIsc C programming questions
Date: Mon, 24 Oct 2005 12:02:19 +0200	[thread overview]
Message-ID: <6a00c8d50510240302y53794214ud57083563fd974fa@mail.gmail.com> (raw)
In-Reply-To: <435CA333.3010904@crearium.com>

On 10/24/05, fabio <fabio@crearium.com> wrote:
> Hello,
>
> I have some questions about C programming not exactly on Linux but
> Solaris, I hope you can help me:
>
> - Why I cant include this __asm___ lines on a C program and compile it
> on Sun cc on Solaris 10?

Because Sun's C compiler doesn't support __asm__ which is a GNU extension.

> Any workaround?

Use the asm keyword instead:

	asm("mov %sp,%g1");
	asm("mov %g1,%o1");

Does it help?

	\Steve

      reply	other threads:[~2005-10-24 10:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-24  9:02 MIsc C programming questions fabio
2005-10-24 10:02 ` Steve Graegert [this message]

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=6a00c8d50510240302y53794214ud57083563fd974fa@mail.gmail.com \
    --to=graegerts@gmail.com \
    --cc=linux-c-programming@vger.kernel.org \
    /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 NNTP newsgroup(s).