<Kurt_>
Hey, I'm working through some of the wiki docs, specifically https://github.com/manastech/crystal/wiki/Introduction#hello-world , but I'm recieving the errors `Invalid option: -O3` and `Invalid option: -ll`. Is there something else I need to configure on my machine to use llvm compiler flags?
<drizz>
or use --release when compiling, it implies -O3
e_dub has joined #crystal-lang
<Kurt_>
That compiled :) but all that is generated is an executable. I'm not particularly familiar with the llvm and the description in that section lead me to believe this generates something human readable?
Liothen has joined #crystal-lang
Liothen has left #crystal-lang [#crystal-lang]
Liothen has joined #crystal-lang
drizz has joined #crystal-lang
asterite has joined #crystal-lang
<asterite>
Hi @Kurt_
<asterite>
I just saw your message. The wiki is outdated (maybe we should delete everything in it)
<asterite>
There, I deleted those it, and also the “Developers” wiki, because they were really outdated and led more to confusion than explanation. I’ll try to write (and keep in sync) docs in the official site
<Kurt_>
Awesome, that would be really helpful!
<asterite>
For now you can read the samples and just try things out and expect things to work almost as they would in Ruby (there are some differences)
<asterite>
To get to see what llvm a program produces, you can do —ll
<asterite>
then in the directory .crystal you will find those .ll files
<asterite>
another way is to compile it like this: DUMP=1 bin/crystal foo.cr —single-module
<asterite>
that will output it to the standard output, but without optimizations
<asterite>
it will be quite a lot of llvm code because there are some initializations in prelude.cr