Gcc Optmization

William Halliburton whalliburton at eoncc.com
Thu Sep 21 15:10:17 UTC 2000



        How do I tell gcc to generate unoptimized code within a file compiled with -O4?

        I'm writing to memory mapped registers and I need to have C code translated verbatum.

        For example:

        memory_mapped_pointer->register1 = 0x00000000;
        memory_mapped_pointer->register1 = 0xFFFFFFF;

        Needs to be translated into 2 stores not one. The -O4 is removing the first store, how do I avoid this.

        Thank you,
        William




More information about the users mailing list