bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to use control-D character?


From: ali hagigat
Subject: Re: How to use control-D character?
Date: Wed, 13 Oct 2010 10:23:54 +0330

Thank you to reply to my message. Ian, I am using Linux, Fedora 12.
I typed 'as' as you wrote:
root> as
Then I wrote the name of my input file:
root> asm1.s
Then i pressed <ENTER> and then <ctl-D> and nothing happned!
For the second time I pressed  <ctl-D> and now I have the following
error message:
{standard input}: Assembler messages:
{standard input}:1: Error: no such instruction: `asm1.s'

I think you meant writing some assembly instructions before <CTL-D>.
But when I type:
root> as  <ENTER>
root> mov  $0, %eax  <ENTER>
root> <CAPS LOCK> <CTL-D>
nothing happens!! but if i press <CTL-D> for two more times, it will
exit from as and returns back to my shell prompt!
So what happened? Did it assemble the line? Why this <CTL-D> is
useful, how it is used?

Thank you to read my message.

On Tue, Oct 12, 2010 at 4:47 PM, Ian Lance Taylor <address@hidden> wrote:

> http://en.wikipedia.org/wiki/End-of-file
>
> In other words, type
>
> as
> your input file
> ^D
>
> This assumes that you are using Unix or GNU/Linux; you didn't say.
>
> Ian
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]