Comments (5)
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.
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.
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.
Just another question, can I use g++ to merge object together and do the linking in smaller part?
Thanks
from crossbridge.
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)
- Merge codebase to the official SWIG project HOT 3
- Cannot build master branch on Windows platform using Cygwin HOT 6
- Cannot build master branch on Mac platform using Travis-CI HOT 2
- getting started HOT 7
- Building the SDK HOT 1
- pthreads and workers support HOT 10
- getting started HOT 17
- performance aspects of crossbridge code HOT 2
- GDB. HOT 1
- fopen with directories makes fseek throw HOT 2
- PlayerKernel.open() throws exception when opening ISpecialFile file with O_TRUNC
- Cygwin dll files is missing HOT 1
- simple app used flashcc socket throws 'terminate called after throwing an instance of 'AS3::ui::var'' HOT 1
- Can't get it to work with SFML
- how do i link a static lib which build by cygwin HOT 1
- Use crossbridge to compile client.c to swc but failed because of a link error HOT 1
- gcc in cygwin is not support windows 10
- archive project? HOT 4
- crossbridge and C++11 HOT 10
- Disable output in adl
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crossbridge.