Compile assembly code into a.out

Home Forums Forum Compile assembly code into a.out

This topic contains 1 reply, has 2 voices, and was last updated by  rich 7 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #77658

    shun

    hi,

    I would like to compile assembly code into a.out instead of .C program.
    And the assembly code is a neon intrinsic.
    Using ecc -S -target arm32v7-linux -mfpu=neon neon.c into neon.s.
    My problem is how to compile neon.s into a.out with ellcc?
    and running on qemu-arm. qumu-arm a.out.

    Thanks,
    shun

    #77659

    rich
    Keymaster

    Hi shun,

    If you leave out the -S you’ll get an a.out. Otherwise you can do

    ecc -S -target arm32v7-linux -mfpu=neon nios.s
    

    which will also give you the a.out. Unless I’m misunderstanding your question. Is neon.c a complete program that can run under qemu-arm? Or is it a bare metal file meant to run under qemu-system-arm?

    -Rich

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.