caphosra / caphosra.github.io

This is a source repository of my blog.
https://caphosra.net/
0 stars 0 forks source link

[LLVM] How to show a float value by using printf · Capra Cabra Notes #39

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

[LLVM] How to show a float value by using printf · Capra Cabra Blog

Generate LLVM IR that displays the float type variable by using LLVM's C++ API.

https://capra314cabra.github.io/en/posts/2020-04-09-llvm-printf-float/

cheofusi commented 3 years ago

Nice tutorial. To understand why the cast is need before passing the values to printf, see https://stackoverflow.com/a/63156309/8925535

caphosra commented 3 years ago

Thanks. I learn something new :)