<div dir="ltr">Ahh .. if you do that with either gcc or clang without the "-o s.o" then you'll get a file called stdio.h.gch. WIth gcc "file stdio.h.gch" will tell you...<div><br></div><div>stdio.h.gch: GCC precompiled header (version 014) for C<br></div><div><br></div><div>I guess clang also made some kind of precompiled header format, but "file" doesn't know about it.</div><div><br></div><div>I couldn't find something to read them .. except clang itself. Make "clang -ast-print" or something like that is useful? </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 27, 2018 at 10:24 PM, Bruce Hoult <span dir="ltr"><<a href="mailto:brucehoult@sifive.com" target="_blank">brucehoult@sifive.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">stdio.h should be a pure header file with no functions defined in it at all (they'll be in some stdio.c somewhere else), and therefore no code generated.<div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 27, 2018 at 10:05 PM, James Courtier-Dutton via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
When I type the command:<br>
clang-5.0 -c -o s.o stdio.h     (note: stdio.h taken from /usr/include/... )<br>
<br>
This creates some output in s.o<br>
The problem is that I don't know what format it is.<br>
objdump cannot read it.<br>
<br>
Please can someone tell me what format that file is, and which<br>
clang/llvm tool can be made to read it?<br>
<br>
Kind Regards<br>
<br>
James<br>
______________________________<wbr>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>