Regarding value = 0 = 0x0 in VxWorks - VxWorks
This is a discussion on Regarding value = 0 = 0x0 in VxWorks - VxWorks ; when i run source program on shell displays as output value = 0 =
0x00
ex:
->mainStart
I am in mainStart
value = 0 = 0x00
->i
NAME ENTRY TID PRI STATUS PC SP
ERRNO DELAY
---------- ------------ -------- --- ...
-
Regarding value = 0 = 0x0 in VxWorks
when i run source program on shell displays as output value = 0 =
0x00
ex:
->mainStart
I am in mainStart
value = 0 = 0x00
->i
NAME ENTRY TID PRI STATUS PC SP
ERRNO DELAY
---------- ------------ -------- --- ---------- -------- --------
------- -----
tExcTask _excTask 4b99170 0 PEND 4276be 4b9908c
d0003 0
tLogTask _logTask 4b94758 0 PEND 4276be 4b94670
d0003 0
tWdbTask 0x417cc4 4b90c08 3 READY 4276be 4b90ae4
d0003 0
value = 0 = 0x0
my query is, why "value = 0 = 0x00" displayed at output? what exactly
it represent?
-
Re: Regarding value = 0 = 0x0 in VxWorks
On Apr 18, 10:32 am, vikas...@gmail.com wrote:
> when i run source program on shell displays as output value = 0 =
> 0x00
> ex:
> ->mainStart
> I am in mainStart
> value = 0 = 0x00
>
> ->i
> NAME ENTRY TID PRI STATUS PC SP
> ERRNO DELAY
> ---------- ------------ -------- --- ---------- -------- --------
> ------- -----
> tExcTask _excTask 4b99170 0 PEND 4276be 4b9908c
> d0003 0
> tLogTask _logTask 4b94758 0 PEND 4276be 4b94670
> d0003 0
> tWdbTask 0x417cc4 4b90c08 3 READY 4276be 4b90ae4
> d0003 0
> value = 0 = 0x0
>
> my query is, why "value = 0 = 0x00" displayed at output? what exactly
> it represent?
Either mainStart explicitly returns 0, or it is a void function that
happens to appear to return 0.
In short, the displayed value is whatever a called function returned.
int x(void)
{
return -1;
}
will give you value=-1=0xffffffff if you shell invoke x
HTH,
GV