TI论坛
直播中

黄颖

8年用户 176经验值
私信 关注
[问答]

请问CLA只允许调用一层函数吗?

文档里说CLA 没有堆栈,不支持函数的嵌套,那请问CLA只允许调用一层函数吗?

回帖(1)

王秀梅

2020-7-19 14:04:03
CLA是汇编架构,且只支持中断任务,所以确实是没有堆栈的,但CLA C 编译器可以帮助实现C编程,但是有比较多的语言限制,不过C还是存在堆栈的,只是名字改成了sratchpad而已。
比如你提到的,CLA只允许调用一个函数,该函数不能再嵌套调用其它函数,不过那是最开始的编译器版本的限制,后面的新编译器是可以支持无限层函数调用的,请参考下面链接的Function Nesting以及它提到的[size=1em]Function Structure and Calling Conventions [size=1em]:
http://processors.wiki.ti.com/index.php/C2000_CLA_C_Compiler#Compiler_Conventions_and_Restrictions
http://processors.wiki.ti.com/index.php/C2000_CLA_C_Compiler#Function_Structure_and_Calling_Conventions

                                                                         If a post answers your question, please mark it with the "verify answer" button.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分