Changes between Version 4 and Version 5 of HelloWorld
- Timestamp:
- Feb 20, 2008, 9:15:47 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HelloWorld
v4 v5 20 20 }}} 21 21 22 Task description in dsx's API , to put in `hello.task`:22 Task description in dsx's API: 23 23 24 24 {{{ 25 TaskModel(26 'hello _task_model',25 hello_task = TaskModel( 26 'hello', 27 27 impl = [ 28 28 SwTask('hello', stack_size = 128, sources = ['hello.c']) … … 32 32 == Test under Posix == 33 33 34 Let's create a task graph containing only this one, in `tcg.py`. 35 36 And let's generate Posix test application. 34 Let's create a task graph containing only this one. 37 35 38 36 {{{ 39 from dsx import * 40 41 tcg = Tcg( Task('hello', 'hello_task_model') 37 tcg = Tcg( Task('hello', hello_task) 42 38 ) 43 44 px = Posix()45 tcg.generate(px)46 39 }}} 47 40 48 Now we can launch it. 41 And let's create Posix test application (and also a TopMakefile): 49 42 50 43 {{{ 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 [...] 51 55 $ ./exe.posix 52 56 Hello world! … … 63 67 64 68 It works ! 69