Giter VIP home page Giter VIP logo

z88dk-libraries's Introduction

Introduction to selected z88dk Libraries

This file describes some some z88dk compatible libraries.

z88dk-time

The implementation of time.h aspires to conform with ISO/IEC 9899 (C90). However, due to limitations of the target processor and the nature of its development environment, a practical implementation must of necessity deviate from the standard.

z88dk-FatFs

FatFs is a generic FAT/exFAT filesystem module for small embedded systems. The FatFs module is written in compliance with ANSI C (C89) and completely separated from the disk I/O layer. Therefore it is independent of the platform. It can be incorporated into small microcontrollers with limited resource, such as 8051, PIC, AVR, ARM, Z80, RX and etc.

z88dk-FreeRTOS

TBC

Preparation

The libraries can be compiled using the following command lines in Linux, with the +target modified to be relevant to your machine, from the relevant library sub-directory. e.g. for any library.

cd ~/library
zcc +target -lm -x -SO3 --opt-code-size -clib=sdcc_ix --max-allocs-per-node200000 @library.lst -o library
mv library.lib target/lib/newlib/sdcc_ix
zcc +target -lm -x -SO3 --opt-code-size -clib=sdcc_iy --max-allocs-per-node200000 @library.lst -o library
mv library.lib target/lib/newlib/sdcc_iy

The resulting library.lib file should be moved to ~/library/target/lib/newlib/sdcc_ix or ~/library/target/lib/newlib/sdcc_iy respectively, as noted above.

Then, the z88dk-lib function is used to install for the desired target. e.g. for the time library on the yaz180 machine.

cd ..
z88dk-lib +yaz180 time

Some further examples of z88dk-lib usage.

  • libraries list help
z88dk-lib
  • list 3rd party libraries already installed for the zx target
z88dk-lib +zx
  • remove the libname1 libname2 ... libraries from the zx target, -f for no nagging about deleting files.
z88dk-lib +zx -r -f libname1 libname2 ...

Usage

Once installed, the libraries can be linked against on the compile line by adding -llib/target/library and the include file can be found with #include <lib/target/library.h>.

z88dk-libraries's People

Contributors

feilipu avatar electrified avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.