linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Robert Plantz <plantz@sonoma.edu>
To: Kenton Brede <kbrede@gmail.com>
Cc: linux-assembly@vger.kernel.org
Subject: Re: suffix or operands invalid for
Date: Fri, 22 Dec 2006 08:55:30 -0800	[thread overview]
Message-ID: <1166806530.4573.35.camel@localhost> (raw)
In-Reply-To: <1166804181.4573.20.camel@localhost>

On Fri, 2006-12-22 at 08:16 -0800, Robert Plantz wrote:
> On Fri, 2006-12-22 at 08:18 -0600, Kenton Brede wrote:
> > On 12/22/06, Frank Kotler <fbkotler@verizon.net> wrote:
> > 
> > At any rate I tried:
> > 
> > $ as --32 power.s -o power.o
> > 
> > $ ld power.o -o power
> > 
> 
> First, at this point, if you do
>     gcc -m32 power.o -o power

Oops. If it wasn't clear, I meant to use gcc instead of ld for the
linking phase. I.e.,

     as --32 --gstabs power.s -o power.o
     gcc -m32 power.o -o power

The "--gstabs" option will include debugging info. Then you can use gdb
to single step through your program etc. Great learning tool.



  reply	other threads:[~2006-12-22 16:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-22  2:39 suffix or operands invalid for Kenton Brede
2006-12-22 12:51 ` Frank Kotler
2006-12-22 14:18   ` Kenton Brede
2006-12-22 16:16     ` Robert Plantz
2006-12-22 16:55       ` Robert Plantz [this message]
2006-12-22 19:05         ` Kenton Brede
2006-12-22 19:15           ` Robert Plantz
2006-12-31 18:06     ` Hendrik Visage

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=1166806530.4573.35.camel@localhost \
    --to=plantz@sonoma.edu \
    --cc=kbrede@gmail.com \
    --cc=linux-assembly@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).