Soft:libs

From GNU 68HC11/HC12
(Difference between revisions)
Jump to: navigation, search
(Small text about libraries)
 
(Fix links)
 
Line 3: Line 3:
  
 
== GNU 68HC11/12 Libraries ==
 
== GNU 68HC11/12 Libraries ==
* [Soft:libs:libgcc|libgcc] is the compiler runtime library.  Basically it defines arithmetic routines and utility routines that the compiler uses. This library is mandatory and is know to the linker as '''-lgcc'''
+
* [[Soft:libs:libgcc|libgcc]] is the compiler runtime library.  Basically it defines arithmetic routines and utility routines that the compiler uses. This library is mandatory and is know to the linker as '''-lgcc'''
* [Soft:libs:libc|libc] is a complete C library.  This library is '''huge''' for an embedded target.  You may use it
+
* [[Soft:libs:libc|libc]] is a complete C library.  This library is '''huge''' for an embedded target.  You may use it
 
but your program (binary size) will grow up quickly if you use operations such as '''printf'''.
 
but your program (binary size) will grow up quickly if you use operations such as '''printf'''.
* [Soft:libs:libm|libm] is a complete Math library.  You don't want to use this library.  If you think you should,
+
* [[Soft:libs:libm|libm]] is a complete Math library.  You don't want to use this library.  If you think you should,
 
please reconsider.  Using this library makes a non embeddable program: it creates huge executables.
 
please reconsider.  Using this library makes a non embeddable program: it creates huge executables.
  
 
== Other Libraries ==
 
== Other Libraries ==
* [Soft:libs:gel|GEL] is a set of embedded libraries that are targeted at 68HC11 and 68HC12 boards.  It includes
+
* [[Soft:libs:gel|GEL]] is a set of embedded libraries that are targeted at 68HC11 and 68HC12 boards.  It includes
 
a C library that you can embed in your programs.  The C library is much more usable than the GNU one.
 
a C library that you can embed in your programs.  The C library is much more usable than the GNU one.

Latest revision as of 00:25, 1 February 2006

The GNU 68HC11/12 development chain comes with several libraries. Other libraries may be provided by external or third-party packages.

GNU 68HC11/12 Libraries

  • libgcc is the compiler runtime library. Basically it defines arithmetic routines and utility routines that the compiler uses. This library is mandatory and is know to the linker as -lgcc
  • libc is a complete C library. This library is huge for an embedded target. You may use it

but your program (binary size) will grow up quickly if you use operations such as printf.

  • libm is a complete Math library. You don't want to use this library. If you think you should,

please reconsider. Using this library makes a non embeddable program: it creates huge executables.

Other Libraries

  • GEL is a set of embedded libraries that are targeted at 68HC11 and 68HC12 boards. It includes

a C library that you can embed in your programs. The C library is much more usable than the GNU one.

Personal tools