Giter Site home page Giter Site logo

handle > 2GB binary size about cv2pdb HOT 5 OPEN

rainers avatar rainers commented on September 13, 2024
handle > 2GB binary size

from cv2pdb.

Comments (5)

rainers avatar rainers commented on September 13, 2024

Indeed, _fstat64 could be used instead, but I suspect that won't be the only place where assumptions will break. PR welcome ;-)

from cv2pdb.

roytam1 avatar roytam1 commented on September 13, 2024

but I suspect that won't be the only place where assumptions will break

yeah, MSVC's read() (i.e. _read()) can't handle 64bit counts.

from cv2pdb.

Feodor2 avatar Feodor2 commented on September 13, 2024

Hi, i want to use cv2pdb for the same purpose too, malloc fails too. So i thing why it is to load the whole file, Setfilepointer handles >2gb good, then it will read\write the file by parts, not sure about mspdb stuff though, seems its undocumented i failed find any good info.

from cv2pdb.

rainers avatar rainers commented on September 13, 2024

The best information available I know of is in these files: https://github.com/microsoft/microsoft-pdb/tree/master/include (these were not available at the time this program was written). LLVM also has tools to generate CodeView debug info.

If your file is below 4 GB, it might be easiest to fix cv2pdb using a 64-bit build and trying to be stricter about using unsigned/signed sizes.
As you suggest it might be better to handle sections separately, though, to deal with even larger files (each section will have to be below 4 GB).

from cv2pdb.

roytam1 avatar roytam1 commented on September 13, 2024

... and semi-OT: there is a patch for gcc/binutils to generate pdb directly:
https://gcc.gnu.org/pipermail/gcc-patches/2021-March/567030.html

from cv2pdb.

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.