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

Android下的build,为什么默认关闭exception呢? #5431

Open
porpalone opened this issue Apr 16, 2024 · 5 comments
Open

Android下的build,为什么默认关闭exception呢? #5431

porpalone opened this issue Apr 16, 2024 · 5 comments

Comments

@porpalone
Copy link

会有什么性能影响吗?

@pifeifei
Copy link

怎么编译安装到安装手机上呢

@nihui
Copy link
Member

nihui commented Apr 19, 2024

关闭exception能减小二进制体积

@porpalone
Copy link
Author

关闭exception能减小二进制体积

好的,性能没有影响吧?

@porpalone
Copy link
Author

怎么编译安装到安装手机上呢

我直接clang编译底层库的

@nihui
Copy link
Member

nihui commented Apr 28, 2024

关闭exception能减小二进制体积

好的,性能没有影响吧?

建议跑模型实际测试下

ncnn编译时可以通过 cmake -DNCNN_DISABLE_RTTI=OFF -DNCNN_DISABLE_EXCEPTION=OFF 控制是否开启 rtti/exception

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

3 participants