K
karthikbg
Hi,
I have a Board of Coldfire communicating with a PC on the other side.
The PC will be sending via TCP/IP some 5000 different command
identification numbers only
( consider 1 to 5000 ) at 1 minute interval to the board.
The board has Ucos on Coldfire and 8MB flash .
The board will parse the id and carry out the different operations as
per the specification and send the output back to the PC via TCP/IP.
I think 'if-else' is not a good option as it eats up stack and 'switch
case ' is also not a good option as it internally uses 'if-else' only.
Is there any other optimised way to implement this in C ?
Tonnes of Thx in advans,
Karthik Balaguru
I have a Board of Coldfire communicating with a PC on the other side.
The PC will be sending via TCP/IP some 5000 different command
identification numbers only
( consider 1 to 5000 ) at 1 minute interval to the board.
The board has Ucos on Coldfire and 8MB flash .
The board will parse the id and carry out the different operations as
per the specification and send the output back to the PC via TCP/IP.
I think 'if-else' is not a good option as it eats up stack and 'switch
case ' is also not a good option as it internally uses 'if-else' only.
Is there any other optimised way to implement this in C ?
Tonnes of Thx in advans,
Karthik Balaguru