pgubook-readers
[Top][All Lists]
Advanced

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

Re: [Pgubook-readers] how to run the 32 bit examples on a 64 bit gnu/Lin


From: Alexander Kapshuk
Subject: Re: [Pgubook-readers] how to run the 32 bit examples on a 64 bit gnu/Linux
Date: Wed, 27 Mar 2019 15:15:19 +0200

On Wed, Mar 27, 2019 at 2:52 PM <address@hidden> 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
> address@hidden
> 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.



reply via email to

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