Giter Site home page Giter Site logo

Comments (5)

cbakgly avatar cbakgly commented on July 21, 2024

Basically 2 options:
1 dedicate a large memory to abc linking with -jvmopt=-Xmx2000M
2 try LTO to strip out unused symbols: https://github.com/adobe-flash/crossbridge/wiki/Enable-%E2%80%93flto-and-%E2%80%93flto-export-options-to-optimize-your-application-and-reduce-linking-time

On Dec 31, 2013, at 7:54 AM, Julien Hamaide [email protected] wrote:

Hi,
I'm trying to build our project using crossbridge, but linking goes over 32bit memory limit.

Do you know any mean to link in several steps or some settings that lower the need for so much memory?

The project is not huge, so any advices would be great

Thanks


Reply to this email directly or view it on GitHub.

from crossbridge.

crazyjul avatar crazyjul commented on July 21, 2024

Thanks for the quick answer :
I already have jvmop=-Xmx14G, but it's ld that crashes in a C++ code ( got a std::bad_alloc exception )

I'll try your suggestion on next monday ( I'm off until that )

Thanks again

from crossbridge.

crazyjul avatar crazyjul commented on July 21, 2024

Unfortunately, the flag was the flto-api is already there.

No clue how to solve this issue, but compiling the toolchain in 64 bits

from crossbridge.

crazyjul avatar crazyjul commented on July 21, 2024

Just another question, can I use g++ to merge object together and do the linking in smaller part?

Thanks

from crossbridge.

cbakgly avatar cbakgly commented on July 21, 2024

If you compile them into LLVM IR (I mean before convert them into ABC), yes you can use llvm-link.
But even linking into one file, you still have those symbols and still have to convert them into ABC.
Whereas nothing is different in final linking under current design.

So IMHO, it's better to pass as few symbols as possible to decrease the memory demand.
Yes, sometime it's hard. You depend a lib call where in chain you get a lot of dependencies automatically.
Then a smaller code turns into a Big ABC.

On Jan 5, 2014, at 4:29 AM, Julien Hamaide [email protected] wrote:

Just another question, can I use g++ to merge object together and do the linking in smaller part?

Thanks


Reply to this email directly or view it on GitHub.

from crossbridge.

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.