List Info

Thread: assembler output




assembler output
user name
2006-08-28 08:24:44
Hi,

Is there a way to tell the boost build system to generate
assembler 
output for a C++ file? I need it to inspect the generated
code for a 
couple of modules. It is essential that the asselbler output
is 
generated with the same flags as used for generation of
object files.

I use GCC and MSVC toolsets. Tried the follwing:
exe foo : foo.cpp
	:	<toolset>msvc:<cxxflags>-Fafoo.asm
		<toolset>gcc:<cxxflags>-S
	;

The MSVC version works, although it dumps the file in the
project root 
directory.

The GCC does not work because -S prevents creations of the
object file. 
Instead it creates the asm file with the name foo.o.

Please let me know if there is a solution for this problem.

It would be nice to have a portable flag
<asm-output>on or a special 
target type
	asm foo.asm : foo.cpp ;


Artem.

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )