在无操作系统环境中获取 MP_INT 的运行时错误/崩溃
我正在尝试在无操作系统环境中使用 Cyassl-1.6.5 库(TLS 部分)。
我收到 integer.c
文件中的 mp_int
变量的运行时错误。谁能告诉我有什么方法可以解决这个错误吗?
错误不是在编译时发生,而是在执行程序时我的 MPLAB IDE 崩溃了。
是否需要进行任何编译器设置来避免此错误?
I am trying to use the Cyassl-1.6.5 library (TLS part) in OS-less environment.
I am getting a run-time error to mp_int
variable which is in integer.c
file. Can any one tell me any way to resolve this error?
Error is not during compile time, but when executing the program my MPLAB IDE crashes.
Are there any compiler settings which need to do to avoid this error?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试阅读生成的代码,看看它是否做了任何明显有问题的事情。
如果您的目标环境支持调试器,您应该尝试在调试器下运行编程,以获取有关崩溃确切位置的更多信息。
如果类型非常大,可能堆栈溢出,某些嵌入式环境可能具有非常小的默认堆栈,并且有时不支持堆栈帧的自动增长。
You could try reading the generated code, to see if it does anything obviously problematic.
If your target environment supports a debugger, you should try running the programming under the debugger, to perhaps get more information about exactly where it crashes.
If the type is very large, perhaps the stack is overflowing, some embedded environments can have quite small default stacks and also sometimes don't support automatic growing of the stack frame.