Giter Site home page Giter Site logo

Comments (7)

ds5678 avatar ds5678 commented on August 30, 2024

What's your use case for native method detection?

Native Method Detection high memory usage

This is likely not restricted to native method detection, but instead to ISIL analysis, which native method detection uses. The call analyzer also uses ISIL.

from cpp2il.

commonuserlol avatar commonuserlol commented on August 30, 2024

What's your use case for native method detection?

I just enabled all processors for diffable cs 😅. Is there any description for them?

from cpp2il.

commonuserlol avatar commonuserlol commented on August 30, 2024

Actually I wanna view pseudocode like in Ghidra/IDA, can cpp2il produce it?

from cpp2il.

BadRyuner avatar BadRyuner commented on August 30, 2024

Actually I wanna view pseudocode like in Ghidra/IDA, can cpp2il produce it?

Currently, cpp2il cannot create pseudocode. This is because ISIL & armv8 → ISIL is not fully completed and that's not to mention ISIL → pseudocode. With the current implementation of ISIL, a potential pseudocode generator could at most do something like this
Which is not enough to understand what the method does.

from cpp2il.

commonuserlol avatar commonuserlol commented on August 30, 2024

With the current implementation of ISIL, a potential pseudocode generator could at most do something like this

I'm not using windows nor dnspy.

Which is not enough to understand what the method does.

I see. Is there any maintained il2cpp reverse engineering tool like dumper/inspector (both probably died)

from cpp2il.

SamboyCoding avatar SamboyCoding commented on August 30, 2024

I've just pushed two changes. The first one aims to reduce the memory usage of call analysis and native method detection, especially on X86/X64 games, in all situations, without affecting performance. In my testing a game that previously took 12GB of RAM when running on my PC now takes < 6GB with this change.

The second change is a new command line option, --low-memory-mode, which further constrains how much memory CPP2IL tries to use, but this one has a performance cost (e.g. call analysis execution time basically doubled) - but with it on, the same game took < 2GB for call analysis, and 4-5GB for native method detection (which does appear to be a lot more intensive).

Give it a try and let me know how it goes for you.

from cpp2il.

commonuserlol avatar commonuserlol commented on August 30, 2024

Nice, now RAM usage about 2 times less. Tho I didn't tried --low-memory-mode since CPU already a potato.

from cpp2il.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.