Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VC++ .Net Clr/Safe and Clr/Pure

In VC++ .Net, The What does the Clr/Safe (/clr:safe) and Clr/Pure (/clr:pure) means?

like image 591
Gopinathan PK Avatar asked Oct 18 '25 22:10

Gopinathan PK


1 Answers

From the doc:

/clr:pure Produces a Microsoft Intermediate Language (MSIL)-only output file that has no native executable code. However, it can contain native types compiled to MSIL.

/clr:safe Produces an MSIL-only (no native executable code), verifiable output file. /clr:safe enables verification diagnostics (PEVerify Tool (Peverify.exe)).

like image 181
Darin Dimitrov Avatar answered Oct 22 '25 06:10

Darin Dimitrov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!