The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: ToutEnMasm on April 07, 2005, 08:49:19 AM

Title: Transleting C to Masm with the compiler of the VCTOOLKIT
Post by: ToutEnMasm on April 07, 2005, 08:49:19 AM
Hello,
In the comments on the VCTOOLKIT it is said

This is a premium tool from Microsoft where you can write applications in C, try out .NET and use the compiler to convert  C code to MASM code.

How to proceed ?
                                         ToutEnMasm
Title: Re: Transleting C to Masm with the compiler of the VCTOOLKIT
Post by: hutch-- on April 07, 2005, 09:33:10 AM
ToutEnMasm,

Glad to see you back again. Run CL /? and redirect it to a txt file to get all of the options. One of them is to output an assembler file as well as the OBJ file. If you have optimisation turned on its hard to read but if you want a basic algo to optimise, build the C procedure with optimisation turned off as its a lot easier to modify.
Title: Re: Transleting C to Masm with the compiler of the VCTOOLKIT
Post by: Vortex on April 07, 2005, 10:02:24 AM
ToutEnMasm,

If I remember well, the switch should be something like /FAs
Title: Re: Transleting C to Masm with the compiler of the VCTOOLKIT
Post by: ToutEnMasm on April 07, 2005, 01:53:06 PM
Hello,
Thanks at all.
cl /Od /FAs  name.c
It's OK
                            ToutEnMasm