Trisha Shetty (Editor)

Vbcc

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit
Developer(s)
  
Volker Barthelmann

Operating system
  
Multiplatform

Written in
  
ANSI C

Type
  
Cross compiler

Initial release
  
1995; 22 years ago (1995)

Stable release
  
0.9d / December 30, 2014; 2 years ago (2014-12-30)

vbcc is the name of a portable and retargetable ISO/ANSI C compiler. It supports ISO C according to ISO/IEC 9899:1989 and a subset of the new standard ISO/IEC 9899:1999.

It is divided into two parts. One is target-independent and the other is target-dependent. vbcc provides complete abstraction of host-arithmetic and target-arithmetic. It fully supports cross-compiling for 8-bit, 16-bit, 32-bit and 64-bit architectures.

Embedded systems are supported by features like different pointer-sizes, ROM-able code, inline-assembly, bit-types, interrupt-handlers, section-attributes, stack-calculation and many others (depending on the backend).

Optimizations

The compiler provides a large set of high-level optimizations as well as target-specific optimizations to produce faster or smaller code. It is also able to optimize across functions and modules. Target-independent optimizations includes:

  • cross-module function-inlining
  • partial inlining of recursive functions
  • inter-procedural data-flow analysis
  • inter-procedural register-allocation
  • register-allocation for global variables
  • global common-subexpression-elimination
  • global constant-propagation
  • global copy-propagation
  • dead-code-elimination
  • alias-analysis
  • loop-unrolling
  • induction-variable elimination
  • loop-invariant code-motion
  • loop-reversal
  • Currently backends (with different degree of maturity) exist 68k, Coldfire, PowerPC, 80x86 (386 and above), Alpha, C16x/ST10, 68HC12, z-machine architectures.

    All common operating systems can be supported as host systems, including Windows and Unix/Linux systems.

    References

    Vbcc Wikipedia