On Wed, Mar 27, 2019 at 3:15 PM Alexander Kapshuk
<[email protected]> wrote:
>
> On Wed, Mar 27, 2019 at 2:52 PM <[email protected]> wrote:
> >
> > hello,
> >
> >
> > i love the book but is it possible to run the examples through gcc on a 64 
> > bit system. When I try to assemble the first exit.s program example i get 
> > an error message:
> >
> >
> >
> > exit.s: Assembler messages
> >
> > Error no such instruction: mov1 $1 %eax
> > Error no such instruction: mov1 $0, %ebx
> >
> > Is there an option in gcc that I can use to run the 32 bit examples in the 
> > book ?
> >
> >
> > Thank you for your time.
> > _______________________________________________
> > Pgubook-readers mailing list
> > [email protected]
> > https://lists.nongnu.org/mailman/listinfo/pgubook-readers
>
> Please ensure you have 32-bit versions of gcc and libc installed in
> your environment, also known as multilib.
> And try compiling your assembly program as a 32-bit binary:
> gcc -m32 exit.s -o exit
>
> And let us know how you go.

Also, please make sure that the instruction you use is 'movl'
(mov-el), not 'mov1'(mov-one) as in 'movl $1 %eax'.

_______________________________________________
Pgubook-readers mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/pgubook-readers

Reply via email to