Compiler
Compiler copied to clipboard
how to run the code on 64bits ubuntu
After I run the cmd $gcc source.S -o source, the error appears like Error: invalid instruction suffix for `push' then I add .code32 on source.S, the executable file was produced successfully. However, when I ran $ ./source, following error happens: Segmentation fault (core dumped) How can I solve it?
I have the same problem with you, And the author has not updated the project for a long time.
This reason is it can only be compiled to asm code for 32bit-linux platform and we use 64bit-system usually nowaday. So we can try to run it in vitual machine.
run the source file with following command in 64 bit system
gcc source.S -m32 -o source
then you will get a exectutable file. run the exectable file
./source