Skip to content
This repository was archived by the owner on Nov 11, 2021. It is now read-only.
This repository was archived by the owner on Nov 11, 2021. It is now read-only.

compiling code is not working #86

Open

Description

@Ccode-lang

computer info:
OS:raspios
Model:model 4 b

Activity

  1. Ccode-lang commented on Oct 2, 2021

    @Ccode-lang
    Author

    sim works fine

  2. Ccode-lang commented on Oct 2, 2021

    @Ccode-lang
    Author
    [INFO] Generating /home/pi/porth/hello-world.asm
    [CMD] nasm -felf64 /home/pi/porth/hello-world.asm
    [CMD] ld -o /home/pi/porth/hello-world /home/pi/porth/hello-world.o
    /home/pi/porth/hello-world.o: file not recognized: file format not recognized
    
  3. DemonEach commented on Oct 2, 2021

    @DemonEach

    That's because nasm is used for the x86 CPU architecture, raspberry pi in the other hand uses ARM architecture. And also I think assembly instructions in Porth can be only used for x86, for ARM you need to use different assembly instructions.

    There is also pull request for arm support #63

  4. CoolCat467 commented on Oct 2, 2021

    @CoolCat467

    Basically, you need to use aarch64-linux-gnu-as assembler instead of nasm. I believe you might have to modify the main file to do this until that pull request gets looked into.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions