how to see cpp(C preprocessor) output for a file?

Chan Kim ckim at etri.re.kr
Tue Dec 14 16:10:43 CET 2021


But when I do
make CROSS_COMPILE=aarch64-none-elf- lib/tiny-printf.1
make: *** No rule to make target 'lib/tiny-printf.1'.  Stop.
It doesn't work for me.. 
But make x/y/z.s works.

> -----Original Message-----
> From: Chan Kim <ckim at etri.re.kr>
> Sent: Tuesday, December 14, 2021 11:56 PM
> To: 'Rasmus Villemoes' <rasmus.villemoes at prevas.dk>; 'u-
> boot at lists.denx.de' <u-boot at lists.denx.de>
> Subject: RE: how to see cpp(C preprocessor) output for a file?
> 
> Wow that would be very helpful.
> Thank you!
> Chan
> 
> > -----Original Message-----
> > From: Rasmus Villemoes <rasmus.villemoes at prevas.dk>
> > Sent: Tuesday, December 14, 2021 9:23 PM
> > To: ckim at etri.re.kr; u-boot at lists.denx.de
> > Subject: Re: how to see cpp(C preprocessor) output for a file?
> >
> > On 14/12/2021 09.23, ckim at etri.re.kr wrote:
> > > Hello,
> > >
> > > Is there any way I can see the cpp output of a file (for example
> > > arch/arm/lib/vsprintf.c) after the build? (in the Makefile option
> > > for
> > > example)
> >
> > make foo/bar/baz.i
> >
> > for any foo/bar/baz.c file which normally produces foo/bar/baz.o.
> >
> > If you have a arch/bla/xyz.S file, you can similarly do
> >
> > make arch/bla/xyz.s
> >
> > to run the preprocessor on the .S code. And if you want to see the
> > assembly generated from a .c file,
> >
> > make foo/bar/baz.s
> >
> > also works.
> >
> > Rasmus






More information about the U-Boot mailing list