Changes between Version 3 and Version 4 of HelloWorld
- Timestamp:
- Feb 13, 2008, 2:41:08 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HelloWorld
v3 v4 20 20 }}} 21 21 22 Task description in dsx's API :22 Task description in dsx's API, to put in `hello.task`: 23 23 24 24 {{{ 25 hello_task =TaskModel(26 'hello ',25 TaskModel( 26 'hello_task_model', 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. 34 Let's create a task graph containing only this one, in `tcg.py`. 35 36 And let's generate Posix test application. 35 37 36 38 {{{ 37 tcg = Tcg( Task('hello', hello_task) 39 from dsx import * 40 41 tcg = Tcg( Task('hello', 'hello_task_model') 38 42 ) 43 44 px = Posix() 45 tcg.generate(px) 39 46 }}} 40 47 41 And let's create Posix test application (and also a TopMakefile): 48 Now we can launch it. 42 49 43 50 {{{ 44 px = Posix()45 46 tcg.generate(px)47 TopMakefile(px)48 }}}49 50 Now we can compile and launch it.51 52 {{{53 $ make54 [...]55 51 $ ./exe.posix 56 52 Hello world!