1 / 16

Toolchain

Toolchain. Toolchain. GNU make – build utility Dependency-tracking Custom build-rules Parallel builds Flexible/Powerful (In use since 1977). Toolchain. GCC – GNU Compiler Collection Open source Support for ~20 targets C/C++/Objective-C/Java/Fortran/Ada

kyrie
Download Presentation

Toolchain

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Toolchain

  2. Toolchain • GNU make – build utility • Dependency-tracking • Custom build-rules • Parallel builds • Flexible/Powerful (In use since 1977)

  3. Toolchain • GCC – GNU Compiler Collection • Open source • Support for ~20 targets • C/C++/Objective-C/Java/Fortran/Ada • Very large community with several companies

  4. Toolchain • GNU binutils – binary tools • as: Assembler • ld: Linking object files • objdump: Dumping object files • addr2line, ar, c++filt, nm, ranlib, objcopy, etc. • Usually supports more target than GCC • Standard in all Linux distrubutions (almost)

  5. Toolchain • File-formats: Text • Makefiles (Controls build-order, programs etc.) • Sources (C, asm) • Linker-scripts (Controls memory-layout) • File-formats: Binary • Object-files (Before linking) • ELF-files (After linking)

  6. Toolchain

  7. Toolchain • GCC – C-Compiler • Higher level, but not too high (portable assembly) • Optimizations (O0, O1, O2, O3, etc.) • Used in laboration 04

  8. Toolchain • Optimizations, what are they good for? • May improve code • May result in smaller code • Beware! May result in code-explosion! • Usually good enough • Can't beat the programmer!

  9. Toolchain • Linking, what is it good for? • Resolving symbols to memory location • Fundamental for modular design! • Merge several object files • Keep track of symbols between files

  10. Toolchain

More Related