Jump to content
em

Gcc 4.8

Recommended Posts

gcc.logo.small.png

Stiri pentru cei mai apropiati de pinguin, a iesit gcc 4.8. Pana cititi restul articolului sa va dau comenzile de instalare (Deocamdata nu e in niciun repo de la nicio distributie, trebuie compilat de mana)


wget http://gcc.fyxm.net/releases/gcc-4.8.0/gcc-4.8.0.tar.bz2
tar -xjf gcc-4.8.0.tar.bz2
mkdir gcc-build && cd gcc-build
sudo apt-get install libgmp-dev libmpfr-dev libmpc-dev libc6-dev libc6-dev-i386
../gcc-4.8.0/configure --prefix=/app/gcc/4.8.0
make
sudo make install

Ce aduce nou?

GNU se lauda in primu rand cu compilari mult mai rapide pe proiecte mari. (Chromium, Firefox). Spun ca au atins un speedup chiar si de 40%.

Ca infrastructura, este prima versiune de gcc scrisa in C++ (in concluzie, necesita g++ la compilare - pana acum fiecare noua iteratie de gcc se compila cu versiunea anterioara). Conform unui comunicat[1] oficial, schimbarea a fost necesara intrucat C++ este un limbaj mai curat, usor de mentinut si la fel de eficient ca C.

Un nou flag de compilare! -Og. Pentru oamenii care vor o optimizare a codului lor si totusi au nevoie de debugging symbols.

thread_local (C++11)

Inherit constructors


struct A { A(int); };
struct B: A { using A::A; }; // defines B:(int)
B b(42); // OK

Un nou motor de generare de numere aleatoare si distributii.

Cititi mai multe la changelog.

[1] - cxx-conversion - GCC Wiki

Edited by em
  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...