<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>Currently I compile my C code in 2 steps in order to generate .o files<br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>clang -emit-llvm -c foo.c -o foo.bc<br>
</span>
<div>llc -march=XYZ foo.bc -filetype=obj</div>
<div><br>
</div>
<div>Is there a way to generate either .o or .elf files in just 1 command?</div>
<div><br>
</div>
<div>Thanks.<br>
</div>
<span></span><br>
</div>
</body>
</html>