qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Options to output the preprocessor code
@ 2025-06-28 10:18 mindentropy
  2025-06-30 18:57 ` Pierrick Bouvier
  0 siblings, 1 reply; 4+ messages in thread
From: mindentropy @ 2025-06-28 10:18 UTC (permalink / raw)
  To: QEMU Developers

Hi,

Is there an option to generate preprocessor output while building the
QEMU code? It makes it easier to understand some of the macro template
function generation.

-Gautam.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Options to output the preprocessor code
  2025-06-28 10:18 Options to output the preprocessor code mindentropy
@ 2025-06-30 18:57 ` Pierrick Bouvier
  2025-06-30 19:23   ` mindentropy
  0 siblings, 1 reply; 4+ messages in thread
From: Pierrick Bouvier @ 2025-06-30 18:57 UTC (permalink / raw)
  To: mindentropy, QEMU Developers

Hi Gautam,

On 6/28/25 3:18 AM, mindentropy wrote:
> Hi,
> 
> Is there an option to generate preprocessor output while building the
> QEMU code? It makes it easier to understand some of the macro template
> function generation.
> 
> -Gautam.
> 

You can get verbose command for building by using make V=1, or ninja -v, 
depending which command you like to use.

Then, you can get a preprocessed output by using '-E' gcc option.
Don't forget to remove -o option, emitting the object file (or replace 
path).

Regards,
Pierrick


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Options to output the preprocessor code
  2025-06-30 18:57 ` Pierrick Bouvier
@ 2025-06-30 19:23   ` mindentropy
  2025-06-30 20:18     ` Pierrick Bouvier
  0 siblings, 1 reply; 4+ messages in thread
From: mindentropy @ 2025-06-30 19:23 UTC (permalink / raw)
  To: Pierrick Bouvier; +Cc: QEMU Developers

On Tue, Jul 1, 2025 at 12:27 AM Pierrick Bouvier
<pierrick.bouvier@linaro.org> wrote:
>
> You can get verbose command for building by using make V=1, or ninja -v,
> depending which command you like to use.
>
> Then, you can get a preprocessed output by using '-E' gcc option.
> Don't forget to remove -o option, emitting the object file (or replace
> path).

Is there a Make rule to just generate the preprocessor output?


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Options to output the preprocessor code
  2025-06-30 19:23   ` mindentropy
@ 2025-06-30 20:18     ` Pierrick Bouvier
  0 siblings, 0 replies; 4+ messages in thread
From: Pierrick Bouvier @ 2025-06-30 20:18 UTC (permalink / raw)
  To: mindentropy; +Cc: QEMU Developers

On 6/30/25 12:23 PM, mindentropy wrote:
> On Tue, Jul 1, 2025 at 12:27 AM Pierrick Bouvier
> <pierrick.bouvier@linaro.org> wrote:
>>
>> You can get verbose command for building by using make V=1, or ninja -v,
>> depending which command you like to use.
>>
>> Then, you can get a preprocessed output by using '-E' gcc option.
>> Don't forget to remove -o option, emitting the object file (or replace
>> path).
> 
> Is there a Make rule to just generate the preprocessor output?

No, you need to find the command for the associated file you want, and 
manually add the -E parameter.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-06-30 20:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-28 10:18 Options to output the preprocessor code mindentropy
2025-06-30 18:57 ` Pierrick Bouvier
2025-06-30 19:23   ` mindentropy
2025-06-30 20:18     ` Pierrick Bouvier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).