Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--x86-asm-syntax=intel option not documented #4658

Open
dkorpel opened this issue May 13, 2024 · 2 comments
Open

--x86-asm-syntax=intel option not documented #4658

dkorpel opened this issue May 13, 2024 · 2 comments

Comments

@dkorpel
Copy link
Contributor

dkorpel commented May 13, 2024

I was looking for an option to output intel syntax with -output-s, and only found this because ldmd pushes this flag for -vasm. It would be nice if this option were more discoverable.

@JohanEngelen
Copy link
Member

The --x86-asm-syntax=intel option is an LLVM option (meaning it is probably "expert" usage, and it is also available to Clang), and I don't think LDC should document such options; LDC should not be documenting LLVM, because it will quietly bitrot.
I guess one could argue that LDC should add the -masm=intel option. https://stackoverflow.com/questions/10990018/how-to-generate-assembly-code-with-clang-in-intel-syntax

@dkorpel
Copy link
Contributor Author

dkorpel commented May 17, 2024

Maybe instead of documenting it as its own flag, mention it in the description of -output-s. LDC already depends on the flag through ldmd, so I don't think it increases the 'bitrot surface', but if this is meant to stay undocumented, that's also fair.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants