Skip to content

Add ability to emit asm directly #571

@tiehuis

Description

@tiehuis

An --emit argument which allows this would be nice to more easily verify the assembly generated by zig/llvm would useful for integrating with other tools.

We currently can view ir to stdout via the verbose-llvm-ir for example, but the only way to get assembly is to use objdump on the resulting binary.

The use case I have for this is to better integrate https://github.com/mattgodbolt/compiler-explorer, for which I have a local fork working with zig.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions