Skip to content

kg68k/libc-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

libc-tests

X680x0/Human68k用の標準CライブラリであるLIBC(※)の動作確認をするために書いたコード集です。

http://retropc.net/x68000/software/develop/lib/libc1132a/
Project LIBC Groupにより作成され、public domainとして公開されたもの。 一般名詞としてのlibcと区別するためにPD LIBCと呼ばれることもある。

無保証です。

Build

PCやネット上での取り扱いを用意にするために、src/内のファイルはUTF-8で記述されています。
X68000上でビルドする際には、UTF-8からShift_JISへの変換が必要です。

u8tosjを使用する方法

あらかじめ、u8tosjをビルドしてインストールしておいてください。

トップディレクトリでmakeを実行してください。以下の処理が行われます。

  1. build/ディレクトリの作成。
  2. src/内の各ファイルをShift_JISに変換してbuild/へ保存。

次に、カレントディレクトリをbuild/に変更し、makeを実行してください。
実行ファイルが作成されます。

u8tosjを使用しない方法

ファイルを適当なツールで適宜Shift_JISに変換してからmakeを実行してください。
UTF-8のままでは正しくビルドできませんので注意してください。

License

all-permissive license

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.

Author

TcbnErik / 立花@桑島技研
https://github.com/kg68k/libc-tests