Shop OBEX P1 Docs P2 Docs Learn Events
Propeller Tools - "limit of 15 parameters exceeded" — Parallax Forums

Propeller Tools - "limit of 15 parameters exceeded"

pik33pik33 Posts: 2,397
edited 2012-06-11 10:42 in Propeller 1
I wrote this "nostalgic vga" driver, and now try to make something with it.

I had to temporary switch to Windows/Propeller Tools. And then, when I tried to compile this, I got this error message.

Yes, character redefine function has 17 parameters: char code and 16 bytes of definition.... but it works with BST...

So.. to make it compatible with Propeller Tools I have to rewrite this function now... and give it a pointer to buffer with char definition... or: is it any way to switch this limit off?

Comments

  • Heater.Heater. Posts: 21,230
    edited 2012-06-11 10:32
    I might dare to suggest that any method/function in any language having so many parameters is a bad design.
    If you are passing such a lot of stuff a table or structure would be better.
    Sadly Spin does not have structures so an array might have to do.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2012-06-11 10:39
    I'll second Heater's comment. Moreover, a procedure with that many parameters is likely to execute more slowly, since the interpreter won't be able to use it's more efficient "near" stack commands for local variables and expression evaluation. And that's true whether you're using the Propeller Tool or BST.

    -Phil
  • pik33pik33 Posts: 2,397
    edited 2012-06-11 10:42
    An array will do its job. In this case - char redefine - it was simpler to call a function with many parameters. Now I have to fill a buffer, then make a call.
Sign In or Register to comment.