Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AVR用にビルド #5

Closed
Enchan1207 opened this issue Mar 4, 2023 · 14 comments
Closed

AVR用にビルド #5

Enchan1207 opened this issue Mar 4, 2023 · 14 comments

Comments

@Enchan1207
Copy link
Owner

Enchan1207 commented Mar 4, 2023

とりあえずなんとかしてAVRで動かしたいのよ!

@Enchan1207 Enchan1207 changed the title メモリ節約 組込みシステム向け最適化 Mar 7, 2023
@Enchan1207 Enchan1207 changed the title 組込みシステム向け最適化 AVR用にビルド Sep 6, 2023
@Enchan1207
Copy link
Owner Author

cmake-avr をプロジェクトに追加して、とりあえずビルドできるか試してみるか

@Enchan1207
Copy link
Owner Author

collection2 をAVR-availableにしてきました 死ぬかと思った

@Enchan1207
Copy link
Owner Author

こぉーれかなり厳しいなあ!APIは変わらないけど内部の実装にかなり手入るぞ

@Enchan1207
Copy link
Owner Author

たぶん、「Cで動くこと」をベースに考えた方がいい

@Enchan1207
Copy link
Owner Author

Enchan1207 commented Sep 25, 2023

テストケースが動かない(途中で固まるコンパイルできない)…

@Enchan1207
Copy link
Owner Author

Enchan1207 commented Sep 25, 2023

However, there's currently no support for libstdc++, the standard support library needed for a complete C++ implementation. This imposes a number of restrictions on the C++ programs that can be compiled. Among them are:

Obviously, none of the C++ related standard functions, classes, and template classes are available.

ただし、現時点では、完全な C++ 実装に必要な標準サポート ライブラリである libstdc++ はサポートされていません。 これにより、コンパイルできる C++ プログラムに多くの制限が課されます。 その中には次のようなものがあります。

明らかに、C++ 関連の標準関数、クラス、テンプレート クラスは使用できません。

source: microchip

これのせいかもしれぬ

@Enchan1207
Copy link
Owner Author

テンプレート使えないの厳しいなあ

@Enchan1207
Copy link
Owner Author

でも今のところ評価器以外はテンプレートなしで来れてるから、ここをなんとかできれば…

@Enchan1207
Copy link
Owner Author

#26 の変更を取り込もう

Enchan1207 added a commit that referenced this issue Sep 25, 2023
Enchan1207 added a commit that referenced this issue Sep 25, 2023
@Enchan1207
Copy link
Owner Author

これで一応テストは通るようになったけど、pgmspace に対応できてないせいでメモリ使用量がえげつない…

@Enchan1207
Copy link
Owner Author

やっぱだめだ、atmega328だと凍る

@Enchan1207
Copy link
Owner Author

とりあえず各所を PSTR に対応できるようにしよう 話はそれから
ロジック自体のメモリ使用量の話もあるし一旦閉じて、新しく建てようか

@Enchan1207
Copy link
Owner Author

いや閉じちゃダメだろ テストケースの自動化しなきゃ

Enchan1207 added a commit that referenced this issue Sep 25, 2023
@Enchan1207
Copy link
Owner Author

ほい

Enchan1207 added a commit that referenced this issue Sep 25, 2023
Enchan1207 added a commit that referenced this issue Sep 25, 2023
Enchan1207 added a commit that referenced this issue Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant