Tips to compile very very giant code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm compiling Flash into C [1], and now this is officially my
graduation thesis. My code is up on GitHub [2].

Preliminary findings based on my flaky remembrance:

a) 3781 static functions [3] takes 1 minute on `gcc -O0` and 30
minutes on `clang -Oz`
b) one 307725-line-long function [4] takes 2 hours on `clang -Oz` and
10 minutes on `clang -O0`

I appreciate either 1) guidance to minimize compile times based on
your expertise or 2) criticism over my approach.

Notice I face difficulties with both gcc and Clang. I'm completely lost.

Best regards,
Bento

[1] https://www.newgrounds.com/bbs/topic/1540199/999
[2] https://github.com/bottle2/swf2c
[3] https://github.com/bottle2/swf2c/blob/88f9ccb7912d55002e87f1efb11f21720d97e4ec/tests/thousands-of-functions.c
[4] https://github.com/bottle2/swf2c/blob/c4e4faaa50fda0876fa877e68f50de2c6291a7c2/tests/gigaenormous-function.c



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux