SQLiteを動かすためにするべきことについて #11
-
概要こちらに書かれているSQLiteの移植をやりたいのですが、ソースコードをコピーしてきた後に何をすべきか明確にしたいです。
1.ここまでの僕の手順(ソースコードをコピーして標準ライブラリのインクルードをコメントアウトする)は合っていますでしょうか? 開発環境OS: macOS-13.2.1-x86_64-i386-64bit
PYTHON3: Python 3.10.10
CC: Homebrew clang version 16.0.6 Target: x86_64-apple-darwin22.3.0 Thread model: posix InstalledDir: /usr/local//opt/llvm/bin
LD: Homebrew LLD 16.0.6 (compatible with GNU linkers)
QEMU: QEMU emulator version 8.0.3 Copyright (c) 2003-2022 Fabrice Bellard and the QEMU Project developers
OBJCOPY: llvm-objcopy, compatible with GNU objcopy Homebrew LLVM version 16.0.6 Optimized build.
MAKE: GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This program built for i386-apple-darwin11.3.0
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
まず初めに「sqliteの移植」というのは「C標準ライブラリの用意」「sqliteが動くようにビルド設定を調整する」「sqliteが利用するOS依存部分の実装」の3パートに分かれます。今取り組まれているのは最初のC標準ライブラリの用意パートですね。
なお、
C標準ライブラリが必要とするもの (newlibの例) を実装することになります。 最後に、 |
Beta Was this translation helpful? Give feedback.
stdarg.h
とstddef.h
に関してはPDCLibが提供していないので、servers/sqlite3
配下に別に追加しています。次の行で それらをインクルードできるようにしています。microkernel-book/servers/sqlite3/build.mk
Line 9 in 2d284bc
また、移植例の解説をこちらに追加しました。ご参考になれば幸いです。