You may not realize, RobotC has a limit on the number of functions. The limit on the new version is fairly big but it can still run out. But wrapping a lot of intrinsic functions with different names will waste a lot of slots in the function table. Besides, calling a function that in turns calling an intrinsic function is very inefficient. You can achieve the same effect with the above macros.

Wed Aug 07, 2013 4:12 am

Ernest3.14

Professor

Joined: Sat May 18, 2013 1:24 pmPosts: 271Location: Olympia, WA

Re: Developer Packages

MHTS wrote:

May I make a suggestion? Most of the functions in your library are renaming RobotC intrinsic functions. For those you may consider using macros instead.

-snip-

You may not realize, RobotC has a limit on the number of functions. The limit on the new version is fairly big but it can still run out. But wrapping a lot of intrinsic functions with different names will waste a lot of slots in the function table. Besides, calling a function that in turns calling an intrinsic function is very inefficient. You can achieve the same effect with the above macros.

Heh, I was using `inline`, until I noticed RobotC doesn't support that. Thanks for the heads up about function limits and macros. The C++ programmer in me is complaining about type checking though

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum