Changes between Version 4 and Version 5 of HelloWorld


Ignore:
Timestamp:
Feb 20, 2008, 9:15:47 AM (16 years ago)
Author:
Nicolas Pouillon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HelloWorld

    v4 v5  
    2020}}}
    2121
    22 Task description in dsx's API, to put in `hello.task`:
     22Task description in dsx's API:
    2323
    2424{{{
    25 TaskModel(
    26         'hello_task_model',
     25hello_task = TaskModel(
     26        'hello',
    2727        impl = [
    2828        SwTask('hello', stack_size = 128, sources = ['hello.c'])
     
    3232== Test under Posix ==
    3333
    34 Let's create a task graph containing only this one, in `tcg.py`.
    35 
    36 And let's generate Posix test application.
     34Let's create a task graph containing only this one.
    3735
    3836{{{
    39 from dsx import *
    40 
    41 tcg = Tcg( Task('hello', 'hello_task_model')
     37tcg = Tcg( Task('hello', hello_task)
    4238         )
    43 
    44 px = Posix()
    45 tcg.generate(px)
    4639}}}
    4740
    48 Now we can launch it.
     41And let's create Posix test application (and also a TopMakefile):
    4942
    5043{{{
     44px = Posix()
     45
     46tcg.generate(px)
     47TopMakefile(px)
     48}}}
     49
     50Now we can compile and launch it.
     51
     52{{{
     53$ make
     54[...]
    5155$ ./exe.posix
    5256Hello world!
     
    6367
    6468It works !
     69