![]() | ||
| Home | SwiftX Archive | SwiftForth Archive | |

Ron Oliver wrote:
>>purpose: flexibility, speed, memory
>>
>>
>
>Unlinking a task typically just saves you one unconditional jump to
>the next task vs. HALTing the task. I've done it in the past, but
>looking back, I'm not really sure it was ever worth it.
>
>
>
it frees up the memory which is used for the unconditional jump..
>Memory is allocated for the task at compile time, so unless you were
>going to use its stacks or user variables for temporary storage, I
>don't know what you'd gain. BUILD doesn't allocate any memory at
>run-time; it just initializes the task and links it into the
>round-robin.
>
>
I've made a memory allocater. So I'm planning at allocating memory for
the task at runtime, and releasing it..
Dennis Bulgrien, thank you for your code !! I'm stil waiting to try it
out though, the platform died on me ..
Mr Embedded wrote:
>It looks from here like there can be no standard way
>to do this. We use also the i386 SwiftX on our PC/104
>board and it has RELATIVE jumps to next task. So it
>would seem that the layout of the task area and the
>code to do the task switch are very unique to each
>processor (which is as it should be, no?).
>
>
I agree....
>But as the task memory is statically allocated and the
>cost of a halted task is so small, this seems like not
>such a good idea. If it were, we would expect to see
>UNBUILD supplied right there along with build. Its
>absence is meaningful.
>
>
ALLOCATE and FREE is also absent....
>If you are really in the squeeze for memory, you can
>cut the amount allocated for your tasks. The amounts
>allocated by default in the kernel are somewhat
>generous. But do so with caution.
>
>
Some tasks are simple and need small stacks, others need big stacks..
What tasks are build and unbuild depend on the services required (
networking, external hardware, configuration)
thanks for all the reply's !!
-Frank Boon
----------------------------------------------------------------------
swiftx_at_forth.com The SwiftX programming discussion email list
To unsubscribe, send subject "unsubscribe" to swiftx-request_at_forth.com
For list command help, send subject "help" to swiftx-request_at_forth.com
Message archives are located at http://www.forth.com/archive/swiftx
----------------------------------------------------------------------
This list is a forum for SwiftX users. For product support and bug
reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Wed Dec 22 2004 - 04:15:06 PST
This archive was generated by hypermail 2.2.0 : Tue Dec 02 2008 - 03:04:50 PST