Boost logo

Boost-Build :

From: Artem Alimarine (artem_at_[hidden])
Date: 2006-08-28 04:24:44


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

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

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 ;


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at