[llvm-dev] Linking LLVM IR with standard library

Shilpa B via llvm-dev llvm-dev at lists.llvm.org
Fri Nov 18 03:20:07 PST 2016


I have a LLVM IR file generated for a different source language (Not C). I
have added a rand() function in it to generate random numbers.

I compiled the .ll file to .o using clang. However, when I execute the .o
file all generated numbers are zeros.

How should I link the .ll file with the standard library for the clang to
generate the random numbers?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161118/6afad5b2/attachment.html>

More information about the llvm-dev mailing list