ethanhs / cce

commandline compiler explorer - use https://godbolt.org from your terminal!
MIT License
198 stars 14 forks source link

Raw asm output #2

Closed davidbolvansky closed 6 years ago

davidbolvansky commented 6 years ago

Can you add option to get raw asm output? (no "Compiling with" line) https://github.com/ethanhs/cce/blob/master/src/main.rs#L92

ethanhs commented 6 years ago

I think I will just remove it. It is a nice visual cue, but I don't think it is super needed, and it makes it hard to compose with other command line tools.

davidbolvansky commented 6 years ago

Thanks

davidbolvansky commented 6 years ago

I built in and... why it has 8.6 MB? :D

ethanhs commented 6 years ago

Did you do a release build? It might not have removed some debugging information.

davidbolvansky commented 6 years ago

Yes. cargo build --release

after strip cce - 3.2 MB.

ethanhs commented 6 years ago

It seems to be 3,068,416 bytes on Windows, and after the lto I just enabled, 2,852,864 bytes. Rust will link in everything statically, so 3MB isn't that big.

davidbolvansky commented 6 years ago

Yes yes, for static build 3MB is fine.