Re: suffix or operands invalid for
Robert Plantz <[email protected]> Fri, 22 Dec 2006 08:55:30 -0800
| Newsgroups | org.kernel.vger.linux-assembly |
|---|---|
| Message-ID | <1166806530.4573.35.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 <[email protected]> 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.