Created
October 17, 2024 13:11
-
-
Save palash25/0d4292d9db75f51c178de29fd9be3b0f to your computer and use it in GitHub Desktop.
how to emit assembly for zig code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use the following command, assuming you want to emit assembly for a test binary and the file under test is `src/root.zig` | |
`zig test -femit-asm=out.s src/root.zig` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment