We write C for a variety of micros, using VS (VC) as the IDE and an integrated compiler to build the binary for the platform... Not all VS projects end up on Windows!
A
Antzzz
@Antzzz
Posts
-
Where Is IntelliSense For "goto" statements? -
Where Is IntelliSense For "goto" statements?Dave Kreskowiak wrote:
>SMACK!!< You what? I haven't found a need for a GOTO in the last, oh, 15 years...
You've obviously never coded in C for a low power micro with no exception handling... GOTO has it uses - mostly for bailing out to a common exit point when something goes pearshaped and you need to clean up after yourself. Only other option in these circumstances is horribly nested if statements - using a GOTO results in much cleaner/readable code. A TRY/CATCH block would do the trick nicely, but most low power (I'm not talking ARMs here, old crusty Renesas M16s and the like) micros used in industry don't have exception handling.