<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/55773>55773</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Comparison of results between clang command and gcc/g++ command
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
zzjss12
</td>
</tr>
</table>
<pre>
I have a cpp file containing two simple functions. When I compile it with the clang command, it will generate 1000KB S file and 300KB EXE file, and then using g++ will only produce 5KB S file and 57kb EXE file.
What happened?
In fact, I need to compile it like GCC so that I can disassemble it later. If I use the clang command, a large number of functions will be generated during disassembly. In fact, these additional functions are of no use to me.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxtUktvozAQ_jVwGS1yDM7jwKFJm1W0xz10rwYbcGts5Eej9NfvGJomkSqhQOab-R5jN1Zc6hMM_EMCh3aaoFNaQmtN4Moo00M4W_BqnLDaRdMGZY0v4HWQBk7YN06pXwU4qzBAGHBWcxxDZORGZPSwgFpDL410PEhYEUL-7OHvooVdUM6Fl38vcykNpWpIItEnF31G9_gsRNboC0zOithKYI9MbPPefBMVGXnOyNPy-zrwgEGnCW2IrDwuVTgZ6HgbkuYJjJQoa-9zafUu4ffhAN6iIaTA1NyAUJ57L8fmqwtzuQJOHcLRy58XwbHN9RJMHBvpwHa3jS7BGvm9JAEiupT8JnQp7s2iAupwIVQi4PqOizuZyI1drFgYHzeRi7oUu3LH86CClvUB03KnvDVpzEkfdfBoJpwlHsBDjHnHfdtm9Hg9ki8kj07XQwiTz8onhFMHXonYFNiAf7T-uL5-4dm9yRTjqLyP0uMHY5tNmQ81kZTx3ZqtmCB01VLOOlKWjO2qLeXVepNr3kjt64ztM_acq5oSSgnDC7QtSUWLbdWyHW3outquWsF4VhE5cqWLJFxY1-eunj00sfcIauWDv4G4atXjLbjy8xgG6-rPzzfvVzSf7daz1_-k8xBA">