Testing C code by compiling with -s switch?
<p>I want to test my code (I know my code is still incomplete -- yes I am planning to complete it before I compile it) to see if it gives the correct assembly code by compiling with -s switch, how do I do this?<br>    <br>
I am not very familiar with compiling. All I did so far was save my file. Now I need to compile it to be able to run it.</p>

<pre><code>typedef enum {MODE_A, MODE_B, MODE_C, MODE_D, MODE_E} mode_t;
long switch3 (long *p1, long *p2, mode_t action) {
    long result = 0;
    switch(action){
    case MODE_A:
    case MODE_B:
    case MODE_C:
    case MODE_D:
    case MODE_E:
    default:;    // don't forget the colon
    }
    return result;
}
</code></pre>