Shop OBEX P1 Docs P2 Docs Learn Events
.coguser0 & Co — Parallax Forums

.coguser0 & Co

kuronekokuroneko Posts: 3,623
edited 2011-11-05 17:47 in Propeller 1
Based on the cog_c_toggle demo, which states:
/*
 * function to start up a new cog running the toggle
 * code (which [B]we've placed in the .coguser1 section[/B])
 */
I assume once you run out of user sections (0..7) you're stuck, i.e. the number of functions started this way is limited. Is this correct?

Comments

  • David BetzDavid Betz Posts: 14,516
    edited 2011-11-05 17:42
    There is nothing to prevent you from adding more .coguser sections in a custom linker script and there are other ways to start code running in a COG. This linker script mechanism was setup to make it possible to share variables between code running in another COG and code the program that launches it.
  • kuronekokuroneko Posts: 3,623
    edited 2011-11-05 17:47
    OK, that makes sense. Thanks.
Sign In or Register to comment.