Article Details

ID: 1442
Case Type: faq
Category: Lattice IP/Reference Design
Related To: Mico8 Microcontroller
Family: All Devices

Search Answer Database

Search Text Image

LatticeMicoSystem: Are there any limitations to be aware of when using the LatticeMico8 C compiler?

LatticeMico8 GNU C Compiler supports most C language features. There are some limitations on the kinds of language structures that can be implemented.
  1. The only language the GCC compiler supports is C. No other language is supported (i.e C++, Objective C, Objective C++, Java, FORTRAN, Ada).
  2. The LatticeMico8 architecture, presently, only provides a maximum +/- 2K relative executable program address for branching or calls. This constrains the number of C source lines.
  3. There is no floating point math support.
  4. There is no support for functions provided by the Red Hat "newlib" library. The "newlib" library provides functions like malloc(), free(), printf(), scanf(), memset(), memcpy(), strcpy().
  5. Indirect calls using function pointers is not supported.
  6. There is no support for built-in functions, exceptions, DWARF2 stack unwinding, or trampolines.