Click to See Complete Forum and Search --> : Problem with .ASM
Vinay
12-10-2001, 06:26 AM
Hi ,
Can anyone tell me how can I convert my code to .asm file ? And afterwards
if I want to run the .asm file as a program say from c++ application what
should I do ??
Thanks,
Vinay
ralph
12-10-2001, 07:06 AM
"Vinay" <vinay_thombre@rediffmail.com> wrote:
>
>Hi ,
>Can anyone tell me how can I convert my code to .asm file ? And afterwards
>if I want to run the .asm file as a program say from c++ application what
>should I do ??
>
>Thanks,
>Vinay
All compilers have an option to dump assembly code. For VC++ it is '/FA'.
As for running the .asm file as a "program". You can't do that. It isn't
a "program". It is source to make one. It will still have to be compiled
and linked with 'start-up' and 'library' code.
It might be possible to rig some process that compiles and then launches
the results. But is that worth it?
Jonnin
12-12-2001, 02:51 PM
Under project settings, there is a generate listing file (under link, I think).
Thats the asm, you can add source in C++ as comments.
Also, you can get masm free from microsoft. But why bother?
The disassembly from exe's, libs, etc will not make, and you
can compile the cpp from what you have...
you could use masm to make a lib or something, its great for that...
"ralph" <nt_consulting32@SPAMhotmail.com> wrote:
>
>"Vinay" <vinay_thombre@rediffmail.com> wrote:
>>
>>Hi ,
>>Can anyone tell me how can I convert my code to .asm file ? And afterwards
>>if I want to run the .asm file as a program say from c++ application what
>>should I do ??
>>
>>Thanks,
>>Vinay
>
>All compilers have an option to dump assembly code. For VC++ it is '/FA'.
>
>As for running the .asm file as a "program". You can't do that. It isn't
>a "program". It is source to make one. It will still have to be compiled
>and linked with 'start-up' and 'library' code.
>
>It might be possible to rig some process that compiles and then launches
>the results. But is that worth it?
devx.com
Copyright Internet.com Inc. All Rights Reserved