[En-Nut-Discussion] Off-topic - Building Nut/OS fast...very fast

Ole Reinhardt ole.reinhardt at embedded-it.de
Tue Jul 19 11:20:41 CEST 2011


Hi Harald,

> I'm aware, that this is not directly related to Nut/OS, but the right
> people to ask may be available here.
> 
> Building all Nut/OS libs and apps for all supported targets takes time
> and I'm trying to figure out, where's the bottleneck. Upgrading to a
> 3GHz i7 and 12GB RAM helped, but I'd like to have more. Of course the
> compiler does a lot of file I/O and the Hitachi drives I'm using are not
> known for being fast.

My suggestion would be to try building in a ram-disk. That will speed up
your build noticeable.

The bottle necks are:

a) Building the basic NutOS infrastructure takes long time: 
  - Documentation (doxygen parses all files etc.)
  - C++: Compiling C++ (nutconf / qnutconf) is horrible slow compared
    with pure C

b) Building the kernel and libraries itself:
  - Lots of small files needs to be compiled. 

You won't gain much on a, but b will speed up a lot when using a
ram-disk.

Bye,

Ole


-- 

Thermotemp GmbH, Embedded-IT

Embedded Hard-/ Software and Open Source Development, 
Integration and Consulting

http://www.embedded-it.de

Geschäftsstelle Siegen - Steinstraße 67 - D-57072 Siegen - 
tel +49 (0)271 5513597, +49 (0)271-73681 - fax +49 (0)271 736 97

Hauptsitz - Hademarscher Weg 7 - 13503 Berlin
Tel +49 (0)30 4315205 - Fax +49 (0)30 43665002
Geschäftsführer: Jörg Friedrichs, Ole Reinhardt
Handelsregister Berlin Charlottenburg HRB 45978 UstID DE 156329280 




More information about the En-Nut-Discussion mailing list