\" as the prompt, you c" />
Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - The difference between tShell and hostshell on VxWorks
The difference between tShell and hostshell on VxWorks
There are two kinds of shells supported on VxWorks, one is called tshell and the other is called host shell.

Tshell is a task in the VxWorks image. With "->" as the prompt, you can display the task list with "I" in the HyperTerminal and see the corresponding tshell task, or use taskname ToID ("tshell") to get the task Id, where tasknametoid is a pointer to TCB.

Tshell is a parser in C language, which can assign values to variables, display the values of variables, perform numerical operations on variables, and call functions. , but does not support if, for, while and other logical instructions.

-> aa = 1 assign the variable aa to 1 in the tshell (if aa does not exist, create it and add it to the symbol table. The newly created variables are all 32 integer variables! ! )

Tshell is implemented using YACC.

Hostshell is a program on the host, which can parse C language and tcl language.