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 8244297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T21:48:12+00:00 2026-06-07T21:48:12+00:00

I am creating a decompiler from IL (Compiled C#\VB code). Is there any way

  • 0

I am creating a decompiler from IL (Compiled C#\VB code). Is there any way to create reference in C?

Edit:
I want something faster than pointer like stack. Is there a thing like that?

  • 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-06-07T21:48:14+00:00Added an answer on June 7, 2026 at 9:48 pm

    Stack and pointer are two completely independent concepts.

    A reference is just like a pointer, a way to access/pass a variable without copying it.
    On the other hand, stack and heap are two different places where variables live.
    The decision whether or not a variable should live on the stack or on the heap is totally independent from the way you pass it around.

    • If you need a local variable, with a lifetime automatically coupled to your function scope declare it on the stack. Allocation is fast, but the object is gone when the function scope ends. Taking this into account, you can pass the variable by value or by pointer to other functions.
    • If you need a variable that survives the function scope, you need to make it global (or static), or to put the variable dynamically on the heap. Allocation is a bit slower, but once it’s there you can use it like the other. You can pass it by value or by pointer then, either. (Bear in mind, that you need to de-allocate dynamically created objects eventually.)

    If heap allocation is indeed a performance bottleneck, you should make sure that you use automatic variables (on stack) where possible. Then, do profiling of your allocation patterns. And finally optimize your allocation strategy.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Creating sprite sheets aka texture atlases rather than using many hundres of individual images
Creating a site in with FrogCMS and using alot of jquery to create an
creating 20 viewcontrollers and calling them one after the other from the mainviewcontroller as
Creating a popup window from main page with window.open, the child/popup page uses the
Creating a login system for something and am getting: Warning: mysql_result(): supplied argument is
Creating a Certificate authority signing request (Keychain Access, Certificate Assistant: Request Certificate from Certificate
Creating a searchable contacts kind of app. Below is my code public class EmployeeList
Creating my WordPress author.php template page and ran into a little roadblock. I want
Creating Facebook event for specific page with FB Graph API There is a thread
Creating a web interface so our helpdesk can create users and setup some of

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.