- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is it possible to force functions to be inlined with the ImageCraft compiler?
I'm running out of stack space, and many of my functions are called from one place only. So they are ideal for inlining. (But they reside in different files.)
- Labels:
-
PSoC 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Imagcraft does allow inline ASM, if thats what you are looking for.
The only compiler Cypress uses, with inline function capability, is GCC that I
am aware of.
C of course has goto label, I wonder if there is a way of executing a variable
return address, so that a f() could be realized. Maybe some of the better programmers
on forum can comment on this.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you can post your complete project openly we could make some suggestions on reducing stack space. To do so, use Creator's function "Archive Project" and upload the resulting file here.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Bob meant to say PSOC Designers "Archive Project" item in File menu.
If you are using a lot of ints, floats, and doubles, and passing by value rather
than reference, pointer, that eats up a lot of stack.
This may help http://www.cypress.com/?rID=45644 AN60486
Regards, Dana.