Skip to content

how to run the code on 64bits ubuntu #1

@peijunbao

Description

@peijunbao

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions