This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Can I also generate other outputs of gcc when build?


wang cui wrote:
> As eCos Configuration Tool generate ".o" file for each source file 
> defaultly. Manytimes I need to check the preprocessed output(sometimes 
> compiled assembly output) of source file.
> 
> By now, I have to manually call gcc, in a bash shell, with a additional 
> "-E -o xxx.i" option to generate the preprocessed output for check.
> 
> For example:
> arm-elf-gcc -c  
> -I/ecos-c/cygwin/opt/development/project/cpu_4c_lib/lib_install/include 
> -I/opt/development/ecos/packages/devs/serial/generic/16x5x/current 
> -I/opt/development/ecos/packages/devs/serial/generic/16x5x/current/src 
> -I/opt/development/ecos/packages/devs/serial/generic/16x5x/current/tests 
> -I. 
> -I/opt/development/ecos/packages/devs/serial/generic/16x5x/current/src/ 
> -finline-limit=7000 -mcpu=arm7tdmi -mno-short-load-words -Wall 
> -Wpointer-arith -Wstrict-prototypes -Winline -Wundef  -g -O0 
> -ffunction-sections -fdata-sections  -fno-exceptions   
> -Wp,-MD,src/ser_16x5x.tmp -E -o 
> src/devs_serial_generic_16x5x_ser_16x5x.i 
> /opt/development/ecos/packages/devs/serial/generic/16x5x/current/src/ser_16x5x.c 
> 
> 
> 
> So I am asking can I do something to let eCos Configuration Tool 
> generate NOT ONLY ".o", BUT ALSO other outputs(.i, .s, etc.)?

Just add "-save-outputs" to your global GCC options.

Note: I normally do this by hand for the file(s) I'm interested in as
turning it on in a build tree will create tons of files, some of which
can be quite large...

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]