2 ms·
I see, but I'm not convinced a web-tool is the best way to go about it if optimizing assembly is part of one's dayjob. I do understand that it's nice to play w
by amelius 6y ago
I see, but I'm not convinced a web-tool is the best way to go about it if optimizing assembly is part of one's dayjob.
I do understand that it's nice to play with, and that it can have educational value. I would personally love to see WASM support, and a way to see e.g. LLVM intermediate code. But I'd want to see some more documentation on the website e.g. about the ABI so I know how the arguments of a function are passed in etc.
- flohofwoe 6y agoThere's a few nice hidden features presented in Matt Godbolt's talk here: https://www.youtube.com/watch?v=kIoZDUd5DKw https://www.youtube.com/watch?v=kIoZDUd5DKw As for LLVM IR output, just use the right clang command line options: https://www.godbolt.org/z/r7f6TY https://www.godbolt.org/z/r7f6TY Likewise for WASM: https://www.godbolt.org/z/Kr6G3K https://www.godbolt.org/z/Kr6G3K
- pjc50 6y ago> I'm not convinced a web-tool is the best way to go about it if optimizing assembly is one's dayjob. It isn't, because that's not what it's for. Besides, few people have optimizing assembly as a dayjob, and in that case you'd be writing it rather than reading it. Trying to juice a compiler into producing specific assembly output is frustrating and brittle. I suppose it's useful for seeing whether your autovectorisation has worked. But the best use of godbolt - uniquely as a web tool - is to show other people what the output is. (I wish more people would stop before saying "tool X is useless for workflow Y" and ask themselves what the intended workflow of tool X is. Not everything is for everybody, that would be impossible.) > more documentation on the website e.g. about the ABI so I know how the arguments of a function are passed in etc It just calls the underlying compiler executables. Consult their documentation.
- detaro 6y agoThere's quite a range between "looking at compiler output is sometimes useful" and "optimizing assembly is one's day job". We use it all the time, it's certainly not just a toy. I have the luxury of having a build farm with a large range of compilers and platforms available, so I could use that to rig something like godbolt. But that'd be spending probably days on setting something up, + ongoing maintenance, instead of just using an existing thing that does the job? If I really were only doing this kind of thing, that'd probably be worth it to be able to customize etc. But I'm not. It being a service (and thus basically automatically a web tool) is a a valuable feature. It's also a great tool to share and communicate results of such investigations. Again, easy for a web tool.