Skip to content

GCC compatability #16

@TheThirdOne

Description

@TheThirdOne

I would like for GCC generated assembly to be able to be directly compiled (with libc features replaced). A fair number of small features need to be added to make that possible.

  • .section .rodata should not have no effect
    • put it in .data at least
    • maybe add a .rodata section
  • Allow .align n in .text
    • should work properly with n >= 4
    • n < 4 can just be made into n = 4
  • Allow .type
    • probably just ignore it for now
  • Extra psuedo-instructions
    • add sp,sp, -32
    • lui a5, %hi(.LC0)
    • addi a0,a5,%lo(.LC0)
    • jr ra

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions