According to the FXC docs the /Fh option should do this (at least as I read the docs):
/Fh <file>Output header file containing object code.[/quote]
But for me this has exactly the same results as /Fc, e.g. output an assembly code listing.
My command line looks like this (PS is the entry point to my pixel shader):
fxc /FhFoo.h /EPS /Tps_4_0 Foo.fx
Any ideas ? Anyone else got the /Fh option to output a C friendly header file ? Or am just misreading the docs ?