[llvm-dev] Generating object files more efficiently
Doerfert, Johannes via llvm-dev
llvm-dev at lists.llvm.org
Sat Mar 23 13:15:38 PDT 2019
I would have guessed:
object:
clang -c foo.c -o foo.o -march=XYZ
shared library:
clang -shared foo.c -o foo.so -march=XYZ
executable:
clang foo.c -o foo -march=XYZ
On 03/23, J S via llvm-dev wrote:
> Currently I compile my C code in 2 steps in order to generate .o files
>
> clang -emit-llvm -c foo.c -o foo.bc
> llc -march=XYZ foo.bc -filetype=obj
>
> Is there a way to generate either .o or .elf files in just 1 command?
>
> Thanks.
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
--
Johannes Doerfert
Researcher
Argonne National Laboratory
Lemont, IL 60439, USA
jdoerfert at anl.gov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190323/bd0a49e3/attachment.sig>
More information about the llvm-dev
mailing list