Karthikeyan
Karthikeyan

Reputation: 373

Where CSC Compiler Generate PE file?

Take for an example, in Command Prompt we give as,

 >csc /out:"C:\HelloWorld.exe" "C:\HelloWorld.cs"

Than CSC Compiler will generate PE File. Where that file will Save?

Upvotes: 0

Views: 626

Answers (1)

Alexei Levenkov
Alexei Levenkov

Reputation: 100527

EXE in PE executable format will be where you specify with out parameter or in current folder if you don't.

Not sure what "IL" file you are talking about, but IL (or rather byte code) + metadata are part of EXE file.

If you need details on PE format itself - specification can be found on MSDN: PE Format.

If you are looking for IL you may use ILDASM (part of .Net SDK) or many other .Net decompilers to see IL. If you want to quickly experiment and see IL - LinqPad.net is very convenient tool for that.

Upvotes: 2

Related Questions