-5

(C#) I would like to load a C file using windows form then convert it into assembly language and shows it on a rich text box. Is it possible to do on C#? Thanks in advance!

Kris
  • 9
  • 2

1 Answers1

2

In the application you can achieve this by following steps

  1. Load the .c file
  2. Compile it with cl.exe.
  3. Use the dumpbin.exe utility to disasmble the output exe file
  4. Show the result in Rich Text box

You'll need System.Diagnostics.Process class to urn those utilities. See example on Best Way to call external program in c# and parse output

Community
  • 1
  • 1
Shiplu Mokaddim
  • 56,364
  • 17
  • 141
  • 187