Changes between Version 3 and Version 4 of HelloWorld


Ignore:
Timestamp:
Feb 13, 2008, 2:41:08 AM (16 years ago)
Author:
Nicolas Pouillon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HelloWorld

    v3 v4  
    2020}}}
    2121
    22 Task description in dsx's API:
     22Task description in dsx's API, to put in `hello.task`:
    2323
    2424{{{
    25 hello_task = TaskModel(
    26         'hello',
     25TaskModel(
     26        'hello_task_model',
    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.
     34Let's create a task graph containing only this one, in `tcg.py`.
     35
     36And let's generate Posix test application.
    3537
    3638{{{
    37 tcg = Tcg( Task('hello', hello_task)
     39from dsx import *
     40
     41tcg = Tcg( Task('hello', 'hello_task_model')
    3842         )
     43
     44px = Posix()
     45tcg.generate(px)
    3946}}}
    4047
    41 And let's create Posix test application (and also a TopMakefile):
     48Now we can launch it.
    4249
    4350{{{
    44 px = Posix()
    45 
    46 tcg.generate(px)
    47 TopMakefile(px)
    48 }}}
    49 
    50 Now we can compile and launch it.
    51 
    52 {{{
    53 $ make
    54 [...]
    5551$ ./exe.posix
    5652Hello world!