Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6759755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:59:15+00:00 2026-05-26T13:59:15+00:00

/clr:pure switch generates pure MSIL but it is not verifible. Native array and pointer

  • 0

/clr:pure switch generates pure MSIL but it is not verifible. Native array and pointer can be used in this mode. Does that mean that there is a structure in MSIL to hold native arrays and pointers? If yes, I would like to ask how can I code MSIL native array and pointer?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T13:59:16+00:00Added an answer on May 26, 2026 at 1:59 pm

    Yes, there is a type in CIL to represent unmanaged pointers. They are similar to managed pointers (ref and out in C#, & in CIL), except that GC ignores them and you can do some arithmetic operations on them (those that make sense with pointers).

    Interestingly, the pointer type does contain information about the target type (so it’s e.g. int32*), but all arithmetic operations are byte based.

    As an example, the following C++/CLI method:

    void Bar(int *a)
    {
        a[5] = 15;
    }
    

    produces the following CIL when it’s inside a ref class (as reported by Reflector):

    .method private hidebysig instance void Bar(int32* a) cil managed
    {
        .maxstack 2
        L_0000: ldarg.1      // load the value of a pointer to the stack
        L_0001: ldc.i4.s 20  // load the number 20 (= 4 * 5) to the stack
        L_0003: add          // add 20 to the pointer
        L_0004: ldc.i4.s 15  // load the number 15 to the stack
        L_0006: stind.i4     // store the value of 15 at the computed address
        L_0007: ret          // return from the method
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can CLR Profiler be used for profiling ASP.NET applications?
In the .net CLR Object is the base for all class objects, but not
If I have a 2.0 CLR assembly (pure managed code, no mixed mode issues)
CLR profiler does not seem to work with the Silverlight CLR. Does another memory
When I try my CLR UDF, I am getting this error: Msg 6522, Level
Is this a CLR restriction or a language design decision? I tried to do
Dotnet CLR converts the language code to MSIL. While Java Code be converted to
The CLR Profiler can also reveal which methods allocate more storage than you expected,
The CLR does not support covariant return types or full variance (i. e. applied
I was reading CLR via C# and it seems that in this example, the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.